PDA

View Full Version : How to add columns in QListWidget ?



npc
15th February 2007, 07:02
Hi,

I want to add column in QListWidget/QListView, How can we achive this ?

actually i want to accomplish output like this attachment file

What is the best way to get this ? ( QListView/QTableView/QTreeView) or (QListWidget/QTableWidget/QTreeWidget)

Thanks,
**pc**

jpn
15th February 2007, 07:20
QTreeView/QTreeWidget (with root decoration disabled) is the way to go. The choice between the model-based and the convenience view is yours.. ;)