Results 1 to 2 of 2

Thread: Font Height and width based on font size

  1. #1
    Join Date
    Jun 2010
    Posts
    1
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Font Height and width based on font size

    Hi All,

    How do we get font Height and width based on font size?

    Thanks in advance.

    Ghufran

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,593
    Thanks
    13
    Thanked 1,587 Times in 1,516 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Font Height and width based on font size

    Open Qt Assistant. QFontMetrics, QFontMetricsF, QFont, QPainter::boundingRect() depending on exactly what you want.

Similar Threads

  1. how to get font width depending on its scale
    By iceman in forum Qt Programming
    Replies: 0
    Last Post: 28th July 2010, 06:50
  2. Replies: 6
    Last Post: 27th July 2010, 21:07
  3. adjust font size to QLabel-size
    By hunsrus in forum Qt Programming
    Replies: 0
    Last Post: 9th July 2008, 14:33
  4. Font Size
    By MrShahi in forum Qt Programming
    Replies: 3
    Last Post: 9th July 2008, 07:37
  5. change font size and button size of QMessageBox
    By nass in forum Qt Programming
    Replies: 6
    Last Post: 13th September 2006, 19:16

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.