[Qt-interest] regarding GraphicsScene and add pixmap

Malyushytsky, Alex alex at wai.com
Fri Nov 19 22:24:45 CET 2010


QGraphicsView has "virtual void
drawBackground ( QPainter * painter, const QRectF & rect )"
You can override to draw pixmap.

Alex

From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Mahendra G.R
Sent: Friday, November 19, 2010 12:54 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] regarding GraphicsScene and add pixmap

Hi all,

i have loaded an image into graphics scene using addpixmap method, but it behaves like an item which i dont want, how to make it a non item, and just to behave like a background image in the windows?!,  i dont want my pixmap to be an item rather just a dummy background image.  is it possible to do so??


Thanks,
Best regards.

--
http://www.mahendragr.com


---------------------------------------------------------------------------------------------------
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