summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_qt3support_widgets_q3combobox.cpp
blob: 90d7b149d03cc1820647c4919315b7131f6d1616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! [0]
Q3ComboBox *c = new Q3ComboBox(this, tr("read-only combobox"));
//! [0]


//! [1]
Q3ComboBox *c1 = new Q3ComboBox(false, this, tr("read-only combobox"));
Q3ComboBox *c2 = new Q3ComboBox(true, this, tr("editable combobox"));
//! [1]


//! [2]
static const char* items[] = { "red", "green", "blue", 0 };
combo->insertStrList( items );
//! [2]