[Qt-interest] object derived from qgraphicsItem and QMessageBox?
Riccardo Roasio
riccardo.roasio at gmail.com
Tue Oct 27 08:52:27 CET 2009
I'm creating an application using QGraphicsScene and QGraphicsItem.
In this application i need to ask something to the user and wait for its
decision,
so the QMessageBox is the best choice...
Riccardo
2009/10/26 Srdjan Todorovic <todorovic.s at googlemail.com>
> Hi,
>
> On 26/10/2009, Riccardo Roasio <riccardo.roasio at gmail.com> wrote:
> > is possible to create an object derived from the QGraphicsItem and the
> > QMessageBox?
>
> Does it really make sense to create an object that is a QGraphicsItem
> and also a QMessageBox?
>
> > If so, which functions need to be overloaded?
> > Because QGraphicsItem have the paint function while QMessageBox have the
> > exec function...
>
> I think you can only do it if the methods are marked as virtual, and:
>
> int QMessageBox::exec () [slot]
>
> ... so it looks like you can't do it.
>
> Hope that helps.
>
> Srdjan
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091027/e6606f65/attachment.html
More information about the Qt-interest-old
mailing list