Results 1 to 3 of 3

Thread: How to watch the value of QString in Qt Creator 2.3.85 on Mac OSX 19.8.1 ?

  1. #1
    Join Date
    Oct 2012
    Posts
    6
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Windows

    Default How to watch the value of QString in Qt Creator 2.3.85 on Mac OSX 19.8.1 ?

    I am using QtCreator 2.3.85 on Mac OSX 10.8.1 .
    While debugging C++ code, I could figure out the value of QString in watch window. I t shows a bunch of things, like array , alloc , data - but I could not figure out how to see the exact content.
    Having worked on different debugging environments, it is my expectations that I should see the content without any struggle. I am sure , Qt Creator must also have the way. However, i am not able to figure out how to do it.I searched in web, but could not find out any definite answer to that. I may be missing some setting or something.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: How to watch the value of QString in Qt Creator 2.3.85 on Mac OSX 19.8.1 ?

    It's your debugger that shows the content of variables. To do that for arbitrary object it need helper code to provide a human-friendly display value. These need to be built to match each version of Qt.

    You may need to build the debugging helpers to match your version of Qt. See Tools > Options... > Qt4 > Qt Versions
    http://doc.qt.digia.com/qtcreator-2....ers-based-on-c

  3. #3
    Join Date
    Jul 2009
    Posts
    41
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3

    Default Re: How to watch the value of QString in Qt Creator 2.3.85 on Mac OSX 19.8.1 ?

    For what it's worth, I'm using the latest official Qt (built from source) on my Mac and I am still unable to get the debugger to show me the contents of QString values, etc.

    I've built the debugging helpers, etc, etc....no errors, but I'm still unable to get this to work. In fact I have never had a version of Qt on my Mac where debugging system showed me nicely formatted variable values. I've always had to report to qDebug() << .... etc

Similar Threads

  1. How can I watch for changing current directory?
    By UASlaX in forum Qt Programming
    Replies: 4
    Last Post: 6th September 2011, 16:05
  2. Qt Creator How to watch STL containers/iterators during debugging?
    By kamre in forum Qt Tools
    Replies: 4
    Last Post: 23rd June 2011, 19:00
  3. Replies: 3
    Last Post: 20th September 2010, 09:05
  4. Replies: 3
    Last Post: 12th August 2010, 14:20
  5. I can't watch anytning in my screen
    By maider in forum Qt Programming
    Replies: 13
    Last Post: 26th March 2010, 08:18

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.