PDA

View Full Version : Navigate around the QtTreePropertyBrowser elements



qt_developer
25th April 2013, 19:59
Hi all,

http://www.wiki.crossplatform.ru/images/c/c8/Qq18-propertybrowser-widgets.png

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.

wysota
26th April 2013, 07:41
Is there any specific reason that you can't iterate over the list of properties using a for loop?

qt_developer
26th April 2013, 07:52
No. Using a loop is only an example.

wysota
26th April 2013, 12:19
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:


QList<QtProperty*> properties;
for(int i=0;i<properties.count();++i) {
QtProperty *prop = properties.at(i);
// ...
}

qt_developer
26th April 2013, 14:11
Ok, thank you very much.