[Qt-interest] ~QAbstractGraphicsShapeItem() is not virtual

Scott Aron Bloom Scott.Bloom at sabgroup.com
Fri Aug 28 11:23:12 CEST 2009


I filed it as a bug about 5 years ago... even though the compiler WILL
do the right thing, it makes it self documenting that it is virtual.. 

The bug was denied :)  I requested it on the generated code from uic 3..

Scott

-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of J-P Nurmi
Sent: Friday, August 28, 2009 2:16 AM
To: Qt-interest
Cc: Udovichenko Artem
Subject: Re: [Qt-interest] ~QAbstractGraphicsShapeItem() is not virtual

On Fri, Aug 28, 2009 at 12:03 PM, Udovichenko
Artem<artem.udovichenko at gmail.com> wrote:
> Hi.
> I am found that ~QAbstractGraphicsShapeItem() is not virtual and
> some classes are inherits from it (QGraphicsEllipseItem,
> QGraphicsPathItem, QGraphicsPolygonItem, QGraphicsRectItem, and
> QGraphicsSimpleTextItem.)
> Is this the bug?

Hi,

The destructor is declared as virtual in the base class
(QGraphicsItem). It remains virtual in subclasses regardless of the
missing virtual keyword.

--
J-P Nurmi
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list