A list view. It can be used for showing trees too.
[ Official docs | Back to Index ]
Code | windows | sgi | plastik | aqua |
QListView *w = new QListView( 0, 0 );
w->setRootIsDecorated( true );
w->addColumn( QString("Test") );
w->addColumn( QString("Letter") );
w->addColumn( QString("Roman") );
QListViewItem *i = new QListViewItem( w, QString("Test 1"), QString("a"), QString("i") );
i->setOpen( true );
new QListViewItem( w->firstChild(), QString("Test 2"), QString("b"), QString("ii") );
new QListViewItem( w, QString("Test 3"), QString("c"), QString("iii") );
| ![]() | ![]() | ![]() | ![]() |
QListView *w = new QListView( 0, 0 );
w->addColumn( QString("Test") );
w->addColumn( QString("Letter") );
w->addColumn( QString("Roman") );
new QListViewItem( w, QString("Test 1"), QString("a"), QString("i") );
new QListViewItem( w, QString("Test 2"), QString("b"), QString("ii") );
new QListViewItem( w, QString("Test 3"), QString("c"), QString("iii") );
| ![]() | ![]() | ![]() | ![]() |
[ Back to Index ]
Provided by the DigitalFanatics, the host of the Independent Qt Tutorial.