I'm using a QGraphicsScene
widget and showing upon it some points as QGraphicsRectItem
.
This means calling lots of new
+ addItem()
when showing up, and removeItem()
+ delete
to get rid of unused points.
Of course, for performance issues, I've implemented my own new
and delete
operators, which basically recycle pre-allocated memory chunks.
Those operators works very well with anything, except for Qt classes (I mean QObject derived classes). The error raised is different every time but always occurs during an internal call after all my slot functions have been executed with no errors.
I also tried them with some instances of QWidget
added to some layouts etc.
So the question is, does Qt allready have its own new
and delete operators
, which I am totally skipping defining my own ones?