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.
tdebindings/kjsembed/docs/examples/combobox/combo.js

18 lines
306 B

#!/usr/bin/env kjscmd
// Example that uses QComboBox
var hbox = new QHBox();
var l = new QLabel( hbox );
l.text = 'Combo test';
var cb = new QComboBox( hbox );
cb.insertItem( 'test 1' );
cb.insertItem( 'test 2' );
cb.insertItem( 'test 3' );
cb.insertItem( 'test 4' );
hbox.show();
application.exec();