[Qt-interest] Possible to overlay a QGraphicsView widget on top of a QMainWindow

Donal O'Connor donaloconnor at gmail.com
Wed Apr 1 00:23:23 CEST 2009


Hi There,

I am using QGraphicsView for animating a menu that slides up and down.
The menu consists of about 6 icons arranged horizontally across the lower
part of the screen.

What I want to do is, when I click a button in my QMainWindow, have this
QGraphicsScene go visible have all  my icons slides up (from the
translation).

What I want to do is always have this QGraphicsView widget over the top of
my application and when I click the button, call its .show() method
and then perform the animation using advance() so my icons will translate
upwards into the scene, ie over my main application and I've also got the
stylesheet
of my QGraphicsView widget set so the background is transparent.

Is this even possible?, is it possible to place widgets absolute ontop of
eachother and have some Z value associated with each?
I've successfully got the widget in my main application but I have a feeling
this isn't the correct method.

Another query is, I have all my icons as a sub class of QGraphicsItem, I'm
hoping that I wont have a problem doing selection on these and emitting a
signal when they clicked.

I am using QT Embedded 4.5.

Has anyone got any suggestions?

Thanks.

Regards,
Donal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090331/67b5099d/attachment.html 


More information about the Qt-interest-old mailing list