Results 1 to 4 of 4

Thread: QFontMetrics gives width and height different on MAC OS and windows

  1. #1
    Join Date
    May 2010
    Posts
    17
    Thanks
    6
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default QFontMetrics gives width and height different on MAC OS and windows

    QFontMetrics gives width and height different on MAC OS and windows

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 333 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFontMetrics gives width and height different on MAC OS and windows

    I guess that might be system dependant...
    some OS , if they are not able to render in a given size, they adjust themselves...
    however this should not be a major issue,,, is it ?

  3. #3
    Join Date
    May 2010
    Posts
    17
    Thanks
    6
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: QFontMetrics gives width and height different on MAC OS and windows

    Thanks for reply
    there is requirement that i have to make width and height of any text on windows and mac same

    is there any way to increase display size of fonts on MAC
    Last edited by nikhil; 11th May 2010 at 12:33.

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,004 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QFontMetrics gives width and height different on MAC OS and windows

    the problem is, that windows and mac uses different dpi for their display. So just set your font up with a pixel size and all should be fine, or draw an image and scale it to the available space.

Similar Threads

  1. how to increase menuitem's height and width?
    By aoo7wangyan in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2009, 10:00
  2. QFontMetrics.height()
    By Caius Aérobus in forum Qt Programming
    Replies: 8
    Last Post: 4th April 2009, 17:36
  3. QLayout: different SizeConstraints for width and height?
    By PhilippB in forum Qt Programming
    Replies: 0
    Last Post: 23rd February 2009, 16:33
  4. Pixmap height / width without loading it
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2007, 07:10
  5. width and height of QTabWidget
    By chikkireddi in forum Qt Programming
    Replies: 6
    Last Post: 29th October 2007, 13:53

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.