[Qt-interest] Find main window from widget
Sean Harmer
sean.harmer at maps-technology.com
Sun Jan 23 10:09:56 CET 2011
On Sunday 23 January 2011 05:32:31 Cole, Derek wrote:
> Thank you..not long after I posted to the group I found a version of this
> on a forum and was able to adapt it to my situation. The only hitch is,
> that QGraphicsItem has to subclass QWidget, and that has to be first in
> the list of items your QGraphicsItem subclasses (I was actually
> subclassing QGraphicsPixmapItem)
Take a look at QGraphicsObject. Just derive your custom graphics item from
QGraphicsObject instead of QGraphicsWidget then you have access to signals and
slots. There is no need to use Q[Graphics]Widget.
Sean
More information about the Qt-interest-old
mailing list