I have a G_item_base class, it has some properties I want to use at G_item_rect (a QGraphicsRect subclassed ) and others...
In example, I have this method:
A_GItem_base::A_GItem_base(qint64 internal_pointer, WW::Graph_type my_type) {
void A_GItem_base
::w_set_pen(QPen my_pen
) {
A_GItem_base::A_GItem_base(qint64 internal_pointer, WW::Graph_type my_type) {
w_internal_type= QGraphicsItem::UserType + my_type; }
void A_GItem_base::w_set_pen(QPen my_pen ) {
((QAbstractGraphicsShapeItem*)this->metaObject()->superClass())->setPen(my_pen); }
To copy to clipboard, switch view to plain text mode
And the G_item_rect is declared as:
A_GItem_rect::A_GItem_rect (qint64 internal_pointer QGraphicsScene *scene, QGraphicsItem *parent ) : QGraphicsRectItem (parent,scene) , A_GItem_base(internal_pointer, WW::Graph_rectangle)
To copy to clipboard, switch view to plain text mode
Ok, I can't use Q_object macro. I have
" Class contains Q_OBJECT macro but does not inherit from QObject"
Any help ? Thanks
Bookmarks