Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How can I find a QWidget that pops up and goes away very quickly?
allopis last edited by
In some part of my code (which is quite big) some kind of QWidget or QDialog is being created and shown floating on screen but it very quickly goes away and I cannot find where it comes from. in the code
I have tried attaching a gdb debugger and setting breakpoints in different places:
but I cannot find the exact place in my code where this widget is being created. It must be somewhere where a widget is created without parent. What can I do to find it ? Is it possible to instrument Qt to stop when a widget is being shown on screen?
install an eventfilter on your qApp instance and set a breakpoint for objects/widgets which get a ShowEvent and inspect the callstack.
Depending on your code this might already give a close clue to where it comes from.
JoeCFD last edited by
Check the places where timers may be used