I note that the type_resize variable, has the value that i give it in the constructor......
so if i give it the value of '0', i can modify it with the public function set_type_resize(), but then it return to '0'
The same behaviour appears with other int value.......
SO, IT HAS THE SAME VALUE I GIVE IT IN THE CONSTRUCTOR
In myrect class, i implement two type of constructor:
rectItem(QMenu *menu, const QRectF & rect, QGraphicsItem * parent):QGraphicsRectItem(rect,parent){}
To copy to clipboard, switch view to plain text mode
and
rectItem(QMenu *menu, QGraphicsItem * parent):QGraphicsRectItem(parent){}
To copy to clipboard, switch view to plain text mode
In these constructors i set my private int variable.......
So, What's the matter? Perhaps some function recall the constructor for repaint the item on the scene??? ?????????
Bookmarks