Hi
I have a simple scene with a QGraphicsProxyWidget added to it ( and some widget set on it ). If I try removing it from the scene, like so:
Qt Code:
if ( widget ) { parentScene->removeItem( m_widget ); // m_widget is a QGraphicsProxyWidget delete m_widget; // I also tried m_widget->deleteLater() here - same result m_widget = NULL; }To copy to clipboard, switch view to plain text mode
I get an instant crash - no descriptive callstack though that would tell me what's wrong ( some windows related calls in the callstack, and that's all ).
I'm using version 5.1.1 of the Qt library, I've searched the manual and the net for an instruction how to actually remove such a widget, and it's not documented at all, so I'm not sure if I'm doing something wrong there, or is there a bug in the library.
I'd appreciate any help.
Cheers,
Piotr
Bookmarks