PDA

View Full Version : QTreeWidget



merry
28th May 2007, 12:02
Hi all

I m working ith Qt4.2.2 on my Intel MAC Machine

My Problem:

I m using Treewidget and want to create a TREE of all the directories, subdirectories and files existing in my system.

How can I..

please help...

marcel
28th May 2007, 12:14
Take a look at the Directory View example, in the Qt Demos.
It is in the Item Views category.

Regards

merry
28th May 2007, 12:27
Thanx , I 'll try....

merry
28th May 2007, 12:41
I think that example is for TreeView not for TreeWidget...& that uses setModel() property
and this property is not defined for treewidget...Is there any other way for this....

jpn
28th May 2007, 12:51
Forget about QTreeWidget and use a view + QDirModel. Another example: http://www.qtcentre.org/forum/p-suggestionsideas-about-a-file-browser-post9376/postcount5.html