Results 1 to 2 of 2

Thread: Globally reset my font sizes to default?

  1. #1
    Join Date
    Jan 2011
    Location
    Richmond, VA
    Posts
    94
    Thanks
    14
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Globally reset my font sizes to default?

    Afternoon --

    Like an idiot when I recently had to chuck a large portion of my app for a redesign I decided to change the default font sizes on my widgets to be something a little larger (my client/father-in-law complained they were too small). I was developing on a Mac. Then when I ran the app on Windows my fonts were dramatically different, so back on the Mac I returned the font to what it was originally (Lucida Grande 13 point) -- learned the lesson right then about default platform fonts. I continued developing and have upwards so 200 widgets with that font. I know from a little R&D that before I ever messed with the fonts that Windows applied it's default font to the app (MS Shell Dlg2 8 point), so I thought that would happen again by returning the font back to Lucida Grande 13 point on the Mac, but when it runs on Windows now it's still applying the LG 13.

    I thought I'd returned the font's back to the Mac default but apparently by messing with it, Qt thinks this is a custom font and is not running with the platform's default, so I'm faced with doing one of the following:

    1) Somehow get Qt to "know" that the fonts are defaults and not custom -- is this in a config file somewhere I can modify? I read in another thread that a preferences file can be deleted but didn't want to start doing that without confirmation.
    2) Determine at app startup what the platform is and set an application default font.

    So in a nutshell, I need to get Qt to see the fonts that are defined as being default and not modified/custom ones, or I need to override the ones that are there...


    scott

  2. #2
    Join Date
    Jan 2011
    Location
    Richmond, VA
    Posts
    94
    Thanks
    14
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Globally reset my font sizes to default?

    Well, I figured it out:

    1) Select ALL widgets in Qt Creator Object Inspector
    2) Right click and select "Change Text"
    3) In the Properties palette, hit the reset button (counter clockwise arrow) beside the font; this seems to apply to every widget, at least it did for me
    4) Save

Similar Threads

  1. Title with two different font sizes
    By aloehr in forum Qwt
    Replies: 0
    Last Post: 9th September 2011, 12:25
  2. Default menu sizes
    By KingOfHeart in forum Qt Programming
    Replies: 5
    Last Post: 18th May 2011, 00:10
  3. How to reset a stylesheet to default?
    By homerun4711 in forum Newbie
    Replies: 3
    Last Post: 19th February 2011, 04:43
  4. Font sizes
    By StevenB in forum Qt Programming
    Replies: 1
    Last Post: 5th October 2007, 10:10
  5. qt-config and font sizes
    By hvengel in forum Qt Programming
    Replies: 2
    Last Post: 10th April 2007, 00:31

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.