Results 1 to 4 of 4

Thread: pixel lenght of QString

  1. #1
    Join Date
    Nov 2008
    Location
    Bangalore, India
    Posts
    21
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    Windows Symbian S60

    Question pixel lenght of QString

    Hi,

    How to the pixel length of a Qstring? for a perticular font?

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

    Default Re: pixel lenght of QString


  3. #3
    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: pixel lenght of QString

    Have you actually looked at the Qt Docs and examples? Start with QFontMetrics or QPainter::boundingRect() to see what best suits.

  4. #4
    Join Date
    Mar 2010
    Location
    Brasília, Brasil
    Posts
    15
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: pixel lenght of QString

    Thanks man...

    Too help me.



Similar Threads

  1. Replies: 4
    Last Post: 1st February 2010, 14:21
  2. Display GUI with pixel
    By arashadsaifi in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 19th January 2010, 21:23
  3. Checking max text lenght to fit in line edit?
    By maverick_pol in forum Qt Programming
    Replies: 2
    Last Post: 16th June 2008, 00:24
  4. Replies: 4
    Last Post: 31st January 2008, 20:44
  5. QPixmap pixel by pixel ?
    By tommy in forum Qt Programming
    Replies: 19
    Last Post: 3rd December 2007, 22:52

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.