PDA

View Full Version : Closest thing to Q3ListView in Qt4



lechoo
30th September 2010, 08:08
Hi,
I'm looking for w widget which will allow me to create something like this: http://www.knowdotnet.com/articles/PrintListViewDemoForm.jpg
What I need are: multiple columns, checkboxes and full row select. I understand that I can do this with Q3ListView. Is there something similar in Qt4? QTableWidget and QTreeView look promising. According to this http://doc.trolltech.com/4.6/qt4-interview.html I should use QTreeView. Any advices?

Lykurg
30th September 2010, 08:12
It does not matter if you use QTreeView or QTableView. For your need (since you don't need to expand an item) they behave same. So just took that one, which looks nicer to you.

tbscope
30th September 2010, 08:13
If you want to display a 2 dimensional table: QTableWidget (most simple way to start) or a QTableView (requires more insight)
If you want to display a 3 dimensional table: QTreeWidget (agains, very simple) or a QTreeView (again requires more insight into the model/view pattern)

lechoo
30th September 2010, 11:51
Thank you.