[Qt-interest] QtCreator debugging / Variables mangled in Qt's signal/slot mechanism
André Somers
andre at familiesomers.nl
Wed Oct 7 13:46:55 CEST 2009
Hi,
I am running into a problem that I cant figure out.
I am developing a program on Windows XP, using Qt 4.5.2 in QtCreator. I am
emitting a signal with four arguments: two QStrings, and two pointers to
custom classes. On the slot side of the mechanism, somehow my strings are no
longer recognizable as such in the debugger. The string variables are listed
in the Locals and Watchers view as <not in scope>, even at the place in the
call stack where they originated. Still, the variables *used* to be ok
there, since I outputted them using qDebug() before calling the slot. The
moment the string is used in the code, the code crashes. At the place of the
crash, I get <incomplete type> as the value and <unknown> as the type.
I have no idea how to debug this further. Can somebody help me along?
André
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091007/aaff0757/attachment.html
More information about the Qt-interest-old
mailing list