PDA

View Full Version : how to display QTreewidget like list



sudhansu
23rd February 2011, 09:39
Dear Members,

I've created a treewidget and added some item in that widget. The output looks like below (I cannot upload the output file as my company has blocked the web uploader. )


NAME PLACE PHONE NO
|
|_A INDIA 1000 (Icon)
|
|_B INDIA 1001 (Icon)
|
|_C INDIA 1002(Icon)



But I want to display like this.

NAME PLACE PHONE NO

A INDIA 1000(Icon)

B INDIA 1001(Icon)

C INDIA 1002(Icon)


Please tell me how to do this.

Thank you All.

helloworld
23rd February 2011, 10:42
treeWidget->setRootIsDecorated(false);


is perhaps what you are looking for.

sudhansu
23rd February 2011, 11:15
treeWidget->setRootIsDecorated(false);


is perhaps what you are looking for.

Ya i was looking for this. Thank you very much.