Results 1 to 2 of 2

Thread: set QApplication default font using qss

  1. #1
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default set QApplication default font using qss

    Hi,

    I am trying to set QApplication default font using following qss, but it doesn't work. How can I do that? Thanks
    Qt Code:
    1. font-family: Arial;
    2. font-size: 12px;
    3. font-weight: Normal;
    4. }
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: set QApplication default font using qss

    Try this :
    Qt Code:
    1. * {
    2. font-family: Arial;
    3. font-size: 12px;
    4. font-weight: Normal;
    5. }
    To copy to clipboard, switch view to plain text mode 

  3. The following user says thank you to Lesiok for this useful post:

    lni (1st October 2015)

Similar Threads

  1. Replies: 1
    Last Post: 30th March 2012, 16:46
  2. Globally reset my font sizes to default?
    By scott_hollen in forum Qt Programming
    Replies: 1
    Last Post: 1st November 2011, 23:26
  3. Replies: 2
    Last Post: 1st August 2011, 06:30
  4. Default Font quality not nice
    By vieraci in forum Qt Programming
    Replies: 7
    Last Post: 7th June 2009, 09:54
  5. Application default font
    By larry104 in forum Qt Programming
    Replies: 2
    Last Post: 16th September 2006, 01:24

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.