QGraphicsItem::isBlockedByModalPanel crash, Qt 5.11.0
-
@plover
Hi
Could you try
http://doc.qt.io/qt-5/qtwidgets-graphicsview-diagramscene-example.html
and see if that works ? -
Ok, I can try that.
I'll try to compile my code with different versions of qt5, see if it is limited to qt 5.11.0 .After a bit more studying this is what I've found.
- QGraphicsItem is added to the scene on top of another item and immediately dragged after it is added (added with left button click and the left button is never released before dragging).
- This happens about 25% of the time when the above action is taken.
The lines from my code in the core are doing the following:
/home/plover/workspace/libs/view/MyView.cpp:710
void MyView::mouseMoveEvent( QMouseEvent *event ) { m_mousePos = event->pos(); QGraphicsView::mouseMoveEvent( event ); // Line 710 }
/home/plover/workspace/app/MyApplication.cpp:68
bool MyApplication::notify( QObject *receiver, QEvent *e ) { bool done = true; try { done = QApplication::notify( receiver, e ); // Line 68 } catch ( const std::exception& ex ) { std::cerr << "This should not happen \n"; } catch ( ... ) { std::cerr << "SOMETHING REALLY, REALLY BAD HAPPENED!" ; } return done; }
-
Ok, I can try that.
I'll try to compile my code with different versions of qt5, see if it is limited to qt 5.11.0 .After a bit more studying this is what I've found.
- QGraphicsItem is added to the scene on top of another item and immediately dragged after it is added (added with left button click and the left button is never released before dragging).
- This happens about 25% of the time when the above action is taken.
The lines from my code in the core are doing the following:
/home/plover/workspace/libs/view/MyView.cpp:710
void MyView::mouseMoveEvent( QMouseEvent *event ) { m_mousePos = event->pos(); QGraphicsView::mouseMoveEvent( event ); // Line 710 }
/home/plover/workspace/app/MyApplication.cpp:68
bool MyApplication::notify( QObject *receiver, QEvent *e ) { bool done = true; try { done = QApplication::notify( receiver, e ); // Line 68 } catch ( const std::exception& ex ) { std::cerr << "This should not happen \n"; } catch ( ... ) { std::cerr << "SOMETHING REALLY, REALLY BAD HAPPENED!" ; } return done; }
@plover said in QGraphicsItem::isBlockedByModalPanel crash, Qt 5.11.0:
, see if it is limited to qt 5.11.0 .
that's also a good plan.