Results 1 to 5 of 5

Thread: Watch the content for a QStringList / QList with the debugger

  1. #1
    Join Date
    May 2012
    Posts
    99
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question Watch the content for a QStringList / QList with the debugger

    Hi all,

    Is it possible to watch the content for a QStringList / QList with the debugger?

    Kind regards.

  2. #2
    Join Date
    Oct 2010
    Location
    Bangalore
    Posts
    52
    Thanks
    8
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Watch the content for a QStringList / QList with the debugger

    yes, with visual studio you can watch it clearly .

  3. #3
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Watch the content for a QStringList / QList with the debugger

    and qtcreator
    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.

  4. #4
    Join Date
    May 2012
    Posts
    99
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question Re: Watch the content for a QStringList / QList with the debugger

    I can't see the content of the QStringList. I attach an image to clarify:



    My code:

    Qt Code:
    1. QStringList stringList;
    2. stringList << "red" << "blue" << "black";
    To copy to clipboard, switch view to plain text mode 

    I use Visual Studio 2010.

  5. #5
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Watch the content for a QStringList / QList with the debugger

    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.

Similar Threads

  1. Qt Creator How to watch data of actual type in debugger?
    By kamre in forum Qt Tools
    Replies: 2
    Last Post: 23rd June 2011, 17:50
  2. Debugger problem retrieving data for watch view hangs
    By frenk_castle in forum Installation and Deployment
    Replies: 0
    Last Post: 5th May 2010, 23:09
  3. using QStringList as QList<QListWidgetItem*>
    By geleven in forum Qt Programming
    Replies: 3
    Last Post: 8th April 2010, 18:13
  4. QStringList or QList , which is faster
    By BalaQT in forum Newbie
    Replies: 3
    Last Post: 3rd April 2010, 08:48
  5. Replies: 4
    Last Post: 9th August 2009, 01:04

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.