Results 1 to 2 of 2

Thread: QPainter drawText fails at larger font point sizes, QOpenGLPaintDevice

  1. #1
    Join Date
    Aug 2008
    Location
    Texas, USA
    Posts
    44
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default QPainter drawText fails at larger font point sizes, QOpenGLPaintDevice

    I am using QPainter to draw text onto an QOpenGLPaintDevice. Everything works great, drawLine, drawImage, etc.

    When I use drawText it also works as expected. However if my font size increases from 40pt to 50pt or above the entire text that is drawn is now a filled rectangle corresponding to the correct font size. I've tried a number of different font families.

    Any thoughts?

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QPainter drawText fails at larger font point sizes, QOpenGLPaintDevice

    Please provide a minimal compilable example reproducing the problem.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QPainter::drawText and floating point precision
    By kssm in forum Qt Programming
    Replies: 5
    Last Post: 16th December 2013, 16:29
  2. QPainter::drawText
    By h123 in forum Qt Programming
    Replies: 8
    Last Post: 15th November 2008, 11:10
  3. Replies: 4
    Last Post: 18th December 2007, 09:31
  4. Font sizes
    By StevenB in forum Qt Programming
    Replies: 1
    Last Post: 5th October 2007, 11:10
  5. Change font in QPainter::drawText
    By Morea in forum Qt Programming
    Replies: 1
    Last Post: 19th May 2006, 17:21

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.