[Qt-interest] QPainter::drawText - text outline vs text fill?

Schimkowitsch Robert Robert.Schimkowitsch at andritz.com
Fri Apr 29 11:10:01 CEST 2011


When reading through the docs of the QGraphicsSimpleTextItem, I noticed
the following sentence:

"The simple text item can have both a fill and an outline; setBrush()
will set the text fill (i.e., text color), and setPen() sets the pen
that will be used to draw the text outline."
(I remembered our trainer mentioned that in a QGraphicsView training
course, too).

Since I'll be mostly using QPainter::drawText directly, I was wondering
how QPainter::drawText would behave in that respect. The online
documentation says:

(http://doc.qt.nokia.com/latest/qpainter.html)
"The pen defines how to draw lines and outlines, and it also defines the
text color. "

Outline or fill? Or does QPainter not distinguish between those two?

Robert

#####################################################################################
This message and any attachments are solely for the use of the intended recipients. They may contain privileged and/or confidential information or other information protected from disclosure. If you are not an intended recipient, you are hereby notified that you received this email in error and that any review, dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please contact the sender and delete the message and any attachment from your system.
Thank You.
  ANDRITZ HYDRO GmbH
  Rechtsform/ Legal form: Gesellschaft mit beschrankter Haftung / Corporation 
  Firmensitz/ Registered seat: Wien 
  Firmenbuchgericht/ Court of registry: Handelsgericht Wien 
  Firmenbuchnummer/ Company registration: FN 61833 g
  DVR: 0605077 
  UID-Nr.: ATU14756806
#####################################################################################

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110429/a1a9ee5d/attachment.html 


More information about the Qt-interest-old mailing list