Results 1 to 3 of 3

Thread: QTableView default font and header sizes changes from Qt5.9 to Qt5.12

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QTableView default font and header sizes changes from Qt5.9 to Qt5.12

    You should be able to set a stylesheet at the application or top widget level. Perhaps something like:
    Qt Code:
    1. qApp->setStyleSheet("QTableView { font-family: \"Times New Roman\"; font-size: 9pt }");
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Feb 2020
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: QTableView default font and header sizes changes from Qt5.9 to Qt5.12

    Quote Originally Posted by ChrisW67 View Post
    You should be able to set a stylesheet at the application or top widget level. Perhaps something like:
    Qt Code:
    1. qApp->setStyleSheet("QTableView { font-family: \"Times New Roman\"; font-size: 9pt }");
    To copy to clipboard, switch view to plain text mode 
    Thank you!! It works!!

Similar Threads

  1. Globally reset my font sizes to default?
    By scott_hollen in forum Qt Programming
    Replies: 1
    Last Post: 1st November 2011, 23:26
  2. Title with two different font sizes
    By aloehr in forum Qwt
    Replies: 0
    Last Post: 9th September 2011, 12:25
  3. Default menu sizes
    By KingOfHeart in forum Qt Programming
    Replies: 5
    Last Post: 18th May 2011, 00:10
  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
  •  
Qt is a trademark of The Qt Company.