PDA

View Full Version : QTreeWidget Infinity Child items



aekilic
26th May 2009, 22:26
Dear All

I got a problem.

Form a SQL query I bring a QTreeWidget. But for some of the items I have no child items or some of the items I have its child. Some of them I have child's child. Some of them Child's child's childs or more.

is the a good solution to show them?

Zuzzu
1st June 2009, 02:00
Hi,

can you provide a more details regarding you situation?
The SQL query extract a flat list of record and so, how can you build a tree structure from your data?

A big improvement can be the use of model/view programming in order to speed up the display of relevant data and, if necessary, loads from the database the childs if needed.

Bye

Alessandro

QAmazigh
1st June 2009, 14:19
you have data from database , so it's better to use model/view !