Solved QPoint : no such value --> crash
-
Hi everybody,
I tried to use this:
https://github.com/expobrain/tabbedwindow-qt
But in this example, there is a crash after several step :- separate one window from another like this :
- Click at the right of the text "red view" (or other text) who is alone, here (on the rectangular black) :
And the program crash.
It crash on the file "ghostwindow.cpp" in this function :
bool GhostWindow::dragStarted(const QPoint &pos) { return (pos - m_originPos).manhattanLength() >= QApplication::startDragDistance(); }
The debugger says: "m_originPos: No such value"
I researched in the net how to know if a QPoint has a value but I couldn't find anything...
Somebody know ? - separate one window from another like this :
-
Ok thanks :)
-
I would guess that m_ghost inside TabBar::mouseReleaseEvent() is a nullptr or dangling pointer. You should ask the author of the code for help...
-
Ok thanks :)