Results 1 to 8 of 8

Thread: QVector value in Local and expression

  1. #1
    Join Date
    Nov 2014
    Posts
    23
    Thanks
    4

    Default QVector value in Local and expression

    I am having a vector of structures , i have appended 7 items to that vector....In local and expression , all i could see is it has 7 items but not the content of it (it shows only d and p values inside)...ANy help is appreciated.......

    Here is the structure:

    struct OverHead_Panel_struct
    {
    int PanelNumbr;

    struct Panel
    {
    void * object;
    OverHead_Panel_Components overhead_panel_compd_enum;
    };

    QVector < Panel > panel_vect;
    };


    in another file :
    QVector < OverHead_Panel_struct > overhead_panel_vect;

    I want to see the corresponding 7 values inside overhead_panel_vect in Local and expression.....I dont want to use qDebug() to view those values in application Output

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: QVector value in Local and expression

    Does your Qt kit have the debugger extensions built and can you see the individual structure members using your debugger *before* you insert them into the QVector?

  3. #3
    Join Date
    Nov 2014
    Posts
    23
    Thanks
    4

    Default Re: QVector value in Local and expression

    Yes i can see Individual structure member values in Local and expression before inserted into QVector

  4. #4
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: QVector value in Local and expression

    That's good, but you didn't answer my question about whether or not you have built the debugger extensions for your Qt run-time environment via Qt Creator?

  5. #5
    Join Date
    Nov 2014
    Posts
    23
    Thanks
    4

    Default Re: QVector value in Local and expression

    I am using MSVC compiler and i have added (Windows Kit) cdb.exe to the toolchain.......Is this what u r expecting???

  6. #6
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: QVector value in Local and expression

    No, go into your Qt Creator preferences and "Build & Run", then Qt Versions. Select the Qt version you're using and then expand the section for "Helpers" and make sure you build the debugging extensions.

    I haven't used windows in several years, so may have to dig a little to find that option and I'm not 100% sure that it's applicable for MSVC, but basically it sounds like your debugger doesn't understand the Qt types, etc.

  7. The following user says thank you to jefftee for this useful post:

    vinothrajendran (1st July 2015)

  8. #7
    Join Date
    Nov 2014
    Posts
    23
    Thanks
    4

    Default Re: QVector value in Local and expression

    QT.jpg

    This is what i see in it

    I have selected MSVC 2008
    Last edited by vinothrajendran; 1st July 2015 at 07:38.

  9. #8
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: QVector value in Local and expression

    I don't think I'm going to be able to help you, sorry! I don't use windows and thought this might be your problem, but those options all seem greyed out. Not sure if that's normal for Qt and the MSVC toolchain or not. Perhaps someone that does use Windows can chime in.

Similar Threads

  1. Multi defined QVector<float>::QVector<float>
    By lni in forum Qt Programming
    Replies: 1
    Last Post: 6th May 2013, 07:58
  2. Help with sorting QVector< QVector<int> >
    By m3rlin in forum Qt Programming
    Replies: 3
    Last Post: 10th January 2013, 13:28
  3. sort a Qvector based on another Qvector
    By OzQTNoob in forum Qt Programming
    Replies: 2
    Last Post: 16th February 2012, 06:39
  4. Replies: 5
    Last Post: 2nd September 2011, 23:11
  5. reg expression
    By mickey in forum General Programming
    Replies: 8
    Last Post: 5th July 2007, 20:21

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