Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
03-06-2013 02:06 PM
I'm just wondering if anyone knows how to view Qt containers in a human readable way under debug?
So ie if I have QString str("hello") under debug i wanna see "hello" as a value of str instead of bunch of pointers
Solved! Go to Solution.
03-06-2013 07:05 PM
03-06-2013 07:59 PM - edited 03-06-2013 09:59 PM
Yes you can have the QNX Momentics IDE debugger show the string in the variable window neatly.
Window->preferences->C/C++->debug->GDB and make sure "pretty printing" is enabled
Make a file called .gdbinit in your project root folder and put this in:
from qt4 import register_qt4_printers
Then copy the qt4.py file from: https://projects.kde.org/projects/extragear/kdevel
Put that file in the same working directory (the project directory). Or you can put it somewhere else, and replace the "." in "sys.path.insert(0, '.')" with the folder containing the qt4.py
Next time you run the debugger, it should show the QString.
If you have any problems (it doesn't work), you can check out the gdb trace console, and the gdb console (try: source .gdbinit) to see any errors.
I have yet to do this with the dinkum STL. I just started.... PM me if you want the instructions once I'm done...
p.s. Special thanks to the kdevelop team that made this python module.
edit: removed set print pretty line in .gdbinit. set up properly by qnx ide.
03-14-2013 03:30 PM
I created a github repository for Dinkum/QNX/Blackberry STL printers described here: