[Qt-interest] object derived from qgraphicsItem and QMessageBox?
Srdjan Todorovic
todorovic.s at googlemail.com
Tue Oct 27 12:10:26 CET 2009
Hi,
On 27/10/2009, Riccardo Roasio <riccardo.roasio at gmail.com> wrote:
> So i can create a modal dialog also using QGraphicsItem?
I don't think you can have a dialog that's also a QGraphicsItem.
Grpahics items are in a graphics scenes, and these are it seems 2d
constructs. There does not seem to be any dialog support in
QGraphics*, and i'm not sure any would make sense.
> I would use a QMessageBoxLike item as it is, so create it, retrieve user
> input and destroy it...
You should still be able to use dialogs... so you could use
QMessageBox directly, or create a custom dialog from QDialog - but
it's still a dialog that's in front of the application.
Unless you want one of those MDI windows as graphics items - but I
think in that case you will have to create your own representation of
a dialog using several QGraphicsItems (if this is even possible).
Regards,
Srdjan
More information about the Qt-interest-old
mailing list