The Following 6 Users Say Thank You to marxian For This Useful Post: | ||
|
2014-06-11
, 19:39
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#63
|
The Following 3 Users Say Thank You to marxian For This Useful Post: | ||
|
2014-07-03
, 20:32
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#64
|
The Following 14 Users Say Thank You to marxian For This Useful Post: | ||
|
2014-07-13
, 11:00
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#65
|
|
2014-07-13
, 11:44
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#66
|
The Following User Says Thank You to marxian For This Useful Post: | ||
|
2014-07-13
, 13:33
|
Posts: 1,203 |
Thanked: 3,027 times |
Joined on Dec 2010
|
#67
|
The Following User Says Thank You to Android_808 For This Useful Post: | ||
|
2014-07-15
, 15:44
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#68
|
ListView { id: view width: parent.width height: parent.height model: [ { title: "Classic Game Room - ACCLAIM DUAL TURBO SNES Controller review", subTitle: "This is a list item", duration: "01:32", thumbnail: "file:///home/user/MyDocs/Classic Game Room - ACCLAIM DUAL TURBO SNES Controller review.jpg", progress: 17 }, { title: "Classic Game Room - CASTLEVANIA CIRCLE OF THE MOON review", subTitle: "This is another list item", duration: "03:13", thumbnail: "file:///home/user/MyDocs/Classic Game Room - CASTLEVANIA_ CIRCLE OF THE MOON review.jpg", progress: 84 }, { title: "Classic Game Room - CRYSIS 3 review", subTitle: "And another list item", duration: "06:43", thumbnail: "file:///home/user/MyDocs/Classic Game Room - CRYSIS 3 review.jpg", progress: 56 }, { title: "Classic Game Room - PANASONIC 3DO console review model FZ-1", subTitle: "And another list item", duration: "10:15", thumbnail: "file:///home/user/MyDocs/Classic Game Room - PANASONIC 3DO console review model FZ-1.jpg", progress: 34 }, { title: "Classic Game Room - SQUEEZE BOX review for Atari 2600", subTitle: "This is the last list item", duration: "07:27", thumbnail: "file:///home/user/MyDocs/Classic Game Room - SQUEEZE BOX review for Atari 2600.jpg", progress: 29 } ] delegate: ListItem { width: view.width height: 112 ListItemRectangle { id: rectangle width: 122 height: 92 anchors { left: parent.left leftMargin: 10 verticalCenter: parent.verticalCenter } border { width: 1 color: platformStyle.secondaryTextColor } color: "black" ListItemImage { id: image anchors { fill: parent margins: 1 } source: modelData.thumbnail smooth: true opacity: mouseArea.pressed ? 0.5 : 1 ListItemRectangle { id: background width: 50 height: 20 anchors { right: parent.right bottom: parent.bottom } opacity: 0.7 color: "black" } ListItemText { anchors.fill: background font.pixelSize: 18 alignment: Qt.AlignCenter text: modelData.duration } } ListItemMouseArea { id: mouseArea anchors.fill: parent onClicked: console.log("clicked") onDoubleClicked: console.log("double clicked") onPressAndHold: console.log("press and hold") } } ListItemText { anchors { top: parent.top bottom: parent.bottom left: rectangle.right right: progressBar.left margins: 10 } alignment: Qt.AlignLeft | Qt.AlignVCenter text: modelData.title + "\n\n" + modelData.subTitle } ListItemProgressBar { id: progressBar width: 150 height: 70 anchors { right: parent.right rightMargin: 10 verticalCenter: parent.verticalCenter } maximum: 100 progress: modelData.progress text: progress + "%" textVisible: true textAlignment: Qt.AlignCenter } } }
The Following 7 Users Say Thank You to marxian For This Useful Post: | ||
|
2014-07-19
, 21:42
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#69
|
The Following 8 Users Say Thank You to marxian For This Useful Post: | ||
|
2014-07-19
, 23:26
|
Posts: 1,203 |
Thanked: 3,027 times |
Joined on Dec 2010
|
#70
|
Tags |
hildon, qml components |
|
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:
'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