You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
559 B
31 lines
559 B
var lv = new TQListView();
|
|
lv.rootIsDecorated = true;
|
|
lv.addColumn('Name');
|
|
lv.addColumn('Description');
|
|
|
|
var i = new TQListViewItem( lv );
|
|
i.setText( 0, 'One' );
|
|
i.setText( 1, 'First item' );
|
|
|
|
var j = new TQListViewItem( lv );
|
|
j.setText( 0, 'Two' );
|
|
j.setText( 1, 'Second item' );
|
|
|
|
var k = new TQListViewItem( i );
|
|
k.setText( 0, 'Three' );
|
|
k.setText( 1, 'Third item' );
|
|
|
|
var l = new TQCheckListItem( lv );
|
|
l.setText(0, 'Four' );
|
|
|
|
lv.show();
|
|
|
|
var lvi = lv.firstChild();
|
|
while( lvi )
|
|
{
|
|
println( lvi.text(0) );
|
|
lvi = lvi.nextSibling();
|
|
}
|
|
|
|
application.exec();
|