Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 3.0.1
-
None
-
GDB version (from {{gdb -v}}): GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Qt Creator 3.0.84 (enterprise)
Based on Qt 5.2.1 (GCC 4.6.1, 64 bit)
Built on Apr 4 2014 at 04:22:53
From revision ee3d38c16f
Debugged Qt version: 5.3.0
Qt Creator 3.0.82 (enterprise)
Based on Qt 5.2.1 (MSVC 2010, 32 bit)
Built on Mar 23 2014 at 17:35:28
From revision cb7d71e960
Debugged Qt version: 5.3.0 MSVC2010 OpenGL 32 bitGDB version (from {{gdb -v}}): GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04 Qt Creator 3.0.84 (enterprise) Based on Qt 5.2.1 (GCC 4.6.1, 64 bit) Built on Apr 4 2014 at 04:22:53 From revision ee3d38c16f Debugged Qt version: 5.3.0 Qt Creator 3.0.82 (enterprise) Based on Qt 5.2.1 (MSVC 2010, 32 bit) Built on Mar 23 2014 at 17:35:28 From revision cb7d71e960 Debugged Qt version: 5.3.0 MSVC2010 OpenGL 32 bit
-
13a4f739ef7766eeb28a6f7174e2311c8dba8cf6
Description
http://qt-project.org/doc/qtcreator-3.0/creator-tips.html says:
If an instance of a class is derived from QObject, and you would like to find all other objects connected to one of your object's slots using Qt's signals and slots mechanism, select Tools > Options > Debugger > Debugging Helper > Use Debugging Helper.
In the Locals and Expressions view, expand the object's entry and open the slot in the slots subitem. The objects connected to this slot are shown as children of the slot. This method works with signals too.
I checked that this is enabled, and it is.
I then put a breakpoint on the app.exec() line of the following code:
#include <QApplication> class Object : public QObject { Q_OBJECT public: Object() {} public slots: void aSlot() {} signals: void aSignal(); }; int main(int argc, char *argv[]) { QApplication app(argc, argv); Object o; QObject::connect(&o, SIGNAL(aSignal()), &o, SLOT(aSlot())); return app.exec(); } #include "main.moc"