PDA

View Full Version : Qt Creator Not able to see QString values with even when using pretty printers



prasad_N
20th September 2015, 13:24
Hi,
I am not able to see QString values in my Qt creator(As I am attaching external c++ application, which isn't build using QtCreator).
So i am using pretty printers to view QString values even then I am not able to QString values.

The thing is that I am able to see these values in Debugger Log window(Windows->view->Debugger Log ) when I did as below
source ~/.gdbinit
print qstring_varible -> values are getting printed properly in Debugger Log window

But when I hover over the variable I am not able to see these values instead I could see <not accessible>

Environment;
Qt creator : 3.2.1 , Lib : qt4.8.4, python: 2.7, OS: SLES11 & tried both gbd741 & 751

is there something wrong with this setup ??

prasad_N
7th October 2015, 20:16
Any help from experts.
I saw plenty of posts for similar issue with out a standard solution :-(

prasad_N
27th January 2016, 14:27
gdb 7.10 which supports python & Qt Creator 2.8.0 did the trick for me & Now I am able to see all the Qt types for my project.
Make sure that Tools->options->Debugger->Local & Expresions "Use Debugging Helper" checked.