blob: 3ac404914cec17afeadfcd33b91a26b1a0cac277 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/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();
|