[Qt-interest] Multi-Column Lists
Andre Somers
andre at familiesomers.nl
Wed Oct 6 07:30:05 CEST 2010
Op 6-10-2010 0:12, Jake Colman schreef:
> I'm porting from Qt3 to Qt4. What is the Qt4 equivalent of the
> Q3ListView and Q3ListViewItem? I'm looking to create a multi-column
> readonly list of items. In Qt3 this was a "list" as opposed to a
> "table". I don't see how Qt4's QListView/Widget or QTreeView/Widget can
> be used the same way. What am I missing?
The closest to the Qt3 list view, is QTreeWidget. However, for what you
describe above, I think you need the QTableWidget. Note that if you
don't like the default looks of QTreeView (or -widget, same thing), you
can change that in a few lines of code.
André
More information about the Qt-interest-old
mailing list