Results 1 to 5 of 5

Thread: Navigate around the QtTreePropertyBrowser elements

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

    Question Navigate around the QtTreePropertyBrowser elements

    Hi all,



    I want to navigate by a loop (for example) and retrieve the nodes like this:

    'Enabled'
    'Step'
    'Max Date'
    'Size': 'Width', 'Height'

    Is it possible?

    Kind regards.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Navigate around the QtTreePropertyBrowser elements

    Is there any specific reason that you can't iterate over the list of properties using a for loop?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    Default Re: Navigate around the QtTreePropertyBrowser elements

    No. Using a loop is only an example.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Navigate around the QtTreePropertyBrowser elements

    I don't get what you mean by that "using a loop is only an example". So what exactly is the problem?

    How does your problem differ from:

    Qt Code:
    1. QList<QtProperty*> properties;
    2. for(int i=0;i<properties.count();++i) {
    3. QtProperty *prop = properties.at(i);
    4. // ...
    5. }
    To copy to clipboard, switch view to plain text mode 
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    Default Re: Navigate around the QtTreePropertyBrowser elements

    Ok, thank you very much.

Similar Threads

  1. How to navigate between widget?
    By horoma in forum Qt Programming
    Replies: 1
    Last Post: 2nd January 2013, 22:29
  2. Incorrect QtProperty Order on QtTreePropertyBrowser
    By yaseminyilmaz in forum Qt Programming
    Replies: 1
    Last Post: 23rd March 2012, 22:19
  3. QtTreePropertyBrowser Not Obeying Stylesheet
    By stefanadelbert in forum Qt Programming
    Replies: 0
    Last Post: 12th August 2010, 01:14
  4. QtTreePropertyBrowser and tooltip
    By jobrandt in forum Qt Programming
    Replies: 1
    Last Post: 5th October 2009, 09:43
  5. Replies: 2
    Last Post: 11th August 2009, 16:01

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.