[Qt-interest] Error in class inheriting QGraphicsItem, QObject

Sean Harmer sean.harmer at maps-technology.com
Fri Aug 21 17:19:05 CEST 2009


On Friday 21 Aug 2009 16:11:41 varun singh wrote:
> hi,
>  Well thanks Thiago Macieira for your efforts, but I tried all the three
> options sequentially but changing the order or using QGraphicsWidget is
> giving the same error. And QGraphicsObject, this class is not in the Qt I
> have (maybe its in commercial edition).

class t : public QObject, public QGraphicsItem
{
Q_OBJECT
	t();
	~t();
};

should work fine. Don't forget to rerun qmake if you have been adding/removing 
Q_OBJECT macros.

Sean



More information about the Qt-interest-old mailing list