given,
QPushbutton* button;
what happens if you try to inspect (*button), instead of button ?
given,
QPushbutton* button;
what happens if you try to inspect (*button), instead of button ?
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
I cannot inspect that, there's just the button field and it is a pointer..
Unfortunately, these Qt classes have a private copy contructor so it's not possible to copy them and inspect the copied element (unless you copy all the fields, value by value).
you can normally add a 'watch variable' in any self respecting debugger. Just add one that is the button dereferenced.
looking here suggests that pointer data is expandable.
https://qt-project.org/doc/qtcreator...g-example.html
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
the watch variable stuff should work, thanks.
About the pointer... yes, it should be expandable.. I can see all the stuff of the "this" pointer.. I don't know why I can't do it with others..
uhm.. yep, but now I've installed the Qt debug info packages so it should work..
Bookmarks