Results 1 to 9 of 9

Thread: Why QStyle dosen't changes the standard font?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Why QStyle dosen't changes the standard font?

    Why don't you look at their sources? They probably use the default font for your system.

  2. #2
    Join Date
    Jan 2006
    Posts
    105
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    38
    Thanked 2 Times in 2 Posts

    Default Re: Why QStyle dosen't changes the standard font?

    Quote Originally Posted by wysota
    Why don't you look at their sources? They probably use the default font for your system.
    Yes wysota that's exactly what they do and that's exactly the problem. I think that each style sould has assciated its own font style like seem in the docs... Why doesn't?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Why QStyle dosen't changes the standard font?

    Because they were probably taken on different platforms. If you associated a particular font with each style, what would happen if that exact font was not available on the system? You couldn't use that style there.

  4. #4
    Join Date
    Jan 2006
    Posts
    105
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    38
    Thanked 2 Times in 2 Posts

    Default Re: Why QStyle dosen't changes the standard font?

    Quote Originally Posted by wysota
    Because they were probably taken on different platforms. If you associated a particular font with each style, what would happen if that exact font was not available on the system? You couldn't use that style there.
    Sounds a bit harsh wysota. I think that the style could check if the font is present on the system or something. If don't, set the default font...

  5. #5
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 74 Times in 54 Posts

    Default Re: Why QStyle dosen't changes the standard font?

    Look at it a different way. When I set the fonts for my system as a whole, I expect ALL applications to abide by it. If I want a special font for a particular application, I can (under Unix at least) use the -font command line option.

Similar Threads

  1. Qt renders wrong font
    By durbrak in forum Qt Programming
    Replies: 8
    Last Post: 2nd November 2006, 14:36

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
  •  
Qt is a trademark of The Qt Company.