Qt-interest Archive, July 2007
QTreeWidget: How to access any child at any level by 1st column text & regex?
Message 1 in thread
Dear community,
I've designed a wonderful QTreeWidget & many items with the Qt Designer. But
know I'm writing a method to refresh all item values (column 0 is name &
column 1 is value :o)
I just can't find in the Qt API documentation any convenient way to access
items recursively, by first column text with regex for instance... Does
anyone already did it?
So far, I've coded a (buggy...) recusive method to append a
QList<QTreeWidgetItem *>... But I think it's too complicated & it doesn't
smell the Qt Style...
Thank you,
Christophe
--
[ signature omitted ]
Message 2 in thread
Debug is done, method works.
Bye,
Christophe
"Christophe Bismuth" <christophe.bismuth@xxxxxxxxx> a écrit dans le message
de news: f8kd9u$ih1$1@xxxxxxxxxxxxxxxxxxxxx
> Dear community,
>
> I've designed a wonderful QTreeWidget & many items with the Qt Designer.
> But know I'm writing a method to refresh all item values (column 0 is name
> & column 1 is value :o)
>
> I just can't find in the Qt API documentation any convenient way to access
> items recursively, by first column text with regex for instance... Does
> anyone already did it?
>
> So far, I've coded a (buggy...) recusive method to append a
> QList<QTreeWidgetItem *>... But I think it's too complicated & it doesn't
> smell the Qt Style...
>
> Thank you,
> Christophe
>
--
[ signature omitted ]