TumblerDialog is a tumbler style Dialog used with Tumbler More...
Inherits Dialog
Inherited by TumblerDialogNew.
This element was introduced in qt-components 4.7.
A tumbler dialog is a dialog that shows a tumbler.
TumblerColumn { id: dayColumn label: "DAY" selectedIndex: 9 items: daysList for (var day = 1; day <= 31; day++) { daysList.append({"value" : day}); } } TumblerColumn { id: monthColumn label: "MONTH" selectedIndex: 4 items: monthsList } ListModel { id: monthsList ListElement { value: "Jan" } ListElement { value: "Feb" } ListElement { value: "Mar" } ListElement { value: "Apr" } ListElement { value: "May" } ListElement { value: "Jun" } ListElement { value: "Jul" } ListElement { value: "Aug" } ListElement { value: "Sep" } ListElement { value: "Oct" } ListElement { value: "Nov" } ListElement { value: "Dec" } } TumblerColumn { id: yearColumn label: "YEAR" selectedIndex: 88 items: yearsList for (var year = 1900; year <= 2011; year++) { yearsList.append({"value" : year}); } } TumblerDialog { titleText: "Date of birth" columns: [ dayColumn, monthColumn, yearColumn ] onAccepted: callbackFunction() }
acceptButtonText : string |
The button text for the accept button.
rejectButtonText : string |
The button text for the reject button.
titleText : string |
If not null, it will be used as the title text for the dialog.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.