QGraphicsLineItem
Hi everyone,
I'm new to this forum. I'm using Qt 4 in Windows and I'm having trouble building a basic GUI that uses the QGraphicsScene class.
I declared a pointer as
QGraphicsLineItem *verLine;
and tried to implement it with
verLine = new QGraphicsLineItem(this);
But when I compile the application I get the following error:
gdisplay.cpp: In constructor `GDisplay::GDisplay(QWidget*)':
gdisplay.cpp:19: error: invalid use of undefined type `struct QGraphicsLineItem'
../../../../Qt/4.3.4/include/QtGui/../../src/gui/graphicsview/qgraphicsscene.h:68: error: forward declaration of `struct QGraphicsLineItem'
Can someone tell what I'm doing wrong from this?
Thank you,
Dante