[Qt-interest] object derived from qgraphicsItem and QMessageBox?

Srdjan Todorovic todorovic.s at googlemail.com
Mon Oct 26 17:42:36 CET 2009


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



More information about the Qt-interest-old mailing list