A table widget that holds different table items.
[ Official docs | Back to Index ]
Code | windows | sgi | plastik | aqua |
QTable *w = new QTable( 10, 5, 0, 0 );
w->setItem( 0, 0, new QTableItem( w, QTableItem::WhenCurrent, QString("Test 1") ) );
w->setItem( 0, 1, new QTableItem( w, QTableItem::WhenCurrent, QString("Test 2") ) );
w->setItem( 1, 0, new QCheckTableItem( w, QString("Test 1") ) );
w->setItem( 1, 1, new QCheckTableItem( w, QString("Test 2") ) );
w->setItem( 2, 0, new QComboTableItem( w, QStringList::split( '|', "Test 2|Test 1|Test 3" ) ) );
w->setItem( 2, 1, new QComboTableItem( w, QStringList::split( '|', "Test 3|Test 2|Test 1" ) ) );
w->resize( 200, 150 );
| ![]() | ![]() | ![]() | ![]() |
[ Back to Index ]
Provided by the DigitalFanatics, the host of the Independent Qt Tutorial.