[Qt-interest] Text width greater than the QRect
Malyushytsky, Alex
alex at wai.com
Thu Mar 31 04:02:11 CEST 2011
setClipRect before drawText()
restore clipping after ?
Alex
From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of Marcelo Estanislau Geyer
Sent: Wednesday, March 30, 2011 6:06 PM
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] Text width greater than the QRect
Hi,
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 (Elide Mode ?), as it is for a report.
Thanks,
Marcelo E. Geyer
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”
“Please consider our environment before printing this email.”
More information about the Qt-interest-old
mailing list