Results 1 to 2 of 2

Thread: drawText

  1. #1

    Default drawText

    Hi, i tried to use drawText to draw the string inside a rectangle. but i am facing problem when the string is too long to be fitted into single line. i used QT::breakAnywhere and it works by making the strings to multiple line in that rectangle. My problem is, i wan to make the string to be center of that rectangle no matter it is single line or multiple line. I tried qt::breakAnywhere || qt::center for the flags, but it did not work out.
    please help... thanks in advance

  2. #2

    Default Re: drawText

    sry all, got the solution
    use qt::aligncenter | qt::breakanywhere instead of ||...

Similar Threads

  1. QRectF and drawText
    By aronsson in forum Qt Programming
    Replies: 1
    Last Post: 4th July 2006, 17:05
  2. drawText problem
    By happylucy in forum Qt for Embedded and Mobile
    Replies: 11
    Last Post: 20th April 2006, 01:31
  3. drawText (QT/E 2.3.10)
    By agaf in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 4th February 2006, 12:48

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.