QML does not come (yet?) with the equivalent of a QComboBox. As I find a ComboBox quite useful, even for touch UIs, I wrote a simple wrapper / adapter or whatever you want to call it that enables using a QComboBox in QML. Thereby the goal was to integrate the native QComboBox Qt widget as good as possible with QML, i.e., give it the look and feel of QML and make it work with the touch UI. The following pictures show the “QML’ed” QComboBox in action in MeePasswords on Maemo Fremantle and MeeGo / Harmattan respectively.

In this example the combobox is “filled” with items via a hardcoded list of strings in Component.onCompleted. In a real application one would most probably use something which is more dynamic. Though as an example this should suffice.

“” Since qmlRegisterType is listed as related to QDeclarativeEngine it would seem logical to #include in order to be able to use the qmlRegisterType function. However, this is not the case. Instead, you must #include . This is not mentioned in the documentation. I actually had to grep the source code to figure this out! “”