Results 1 to 2 of 2

Thread: Text width greater than the QRect

  1. #1
    Join Date
    Jan 2008
    Location
    Brasil
    Posts
    131
    Thanks
    18
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Text width greater than the QRect

    I'm using the function QPainter::drawText to draw a text. The problem is I have a QRect with defined width and need to put a text that can have a width greater than the QRect, so the text is not drawn, leaving blank.

    How can I fix this? I do not care if the text cut out, as it is for a report.

    Thanks,

  2. #2
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Text width greater than the QRect

    Write post again, it is hard to say see difference what is your problem and what are you try to achieve, you've mixed everything in one sentence.
    Code snipet would be better.

Similar Threads

  1. Replies: 8
    Last Post: 22nd March 2016, 04:39
  2. Fastest way to get width of rich text
    By jgrauman in forum Qt Programming
    Replies: 2
    Last Post: 22nd June 2010, 22:07
  3. maximum text width of interval
    By osiris81 in forum Qt Programming
    Replies: 2
    Last Post: 20th January 2010, 14:37
  4. Replies: 3
    Last Post: 20th November 2007, 07:03
  5. RGB values greater than 8bit & QColor?
    By smacchia in forum Newbie
    Replies: 11
    Last Post: 21st March 2007, 14:40

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.