View Single Post
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#61
Some further progress:

TextEdit component, with kinetic scrolling:



ListSelector, DateSelector and TimeSelector components:



ListView component:



As with QtQuick, the models can be constructed from JS types, e.g:

Code:
ValueButton {
     width: parent.width
     text: qsTr("Select a number")
     selector: ListSelector {
         model: 10
         currentIndex: 1
     }
}
Code:
ListView {
    anchors.fill: parent
    model: qsTr("This is a model constructed from a list of strings").split(" ")
}
No support for custom delegates yet, but that will come next.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub

Last edited by marxian; 2014-03-01 at 03:24. Reason: Spelling
 

The Following 6 Users Say Thank You to marxian For This Useful Post: