Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iamutkarshtiwari/93085d1b09ed7eb92661c0b3cdda5139 to your computer and use it in GitHub Desktop.
Save iamutkarshtiwari/93085d1b09ed7eb92661c0b3cdda5139 to your computer and use it in GitHub Desktop.
model: 4
Flickable {
x: 2
y: (background.height / 4.7) + (index * (background.height / 6.5))
height: background.height / 7.5
width: background.width
contentWidth: items.rowWidth[index] //(background.width > background.height ? background.width : background.height) * Activity.rowWidth[index]
contentHeight: railCarriages.height
flickableDirection: Flickable.HorizontalFlick
// boundsBehavior: Flickable.StopAtBounds
Row {
id: railCarriages
property real rowNo: index
anchors.margins: 1
anchors.bottomMargin: 10
spacing: 8
x: parent.x
y: 0
height: background.height / 7.5
width: items.rowWidth[index]//Activity.rowWidth[index];//(eachRow.itemAt(Activity.noOfCarriages[index]) - 1).x + (eachRow.itemAt(Activity.noOfCarriages[index]) - 1).width //((background.width > background.height) ? (background.width * Activity.rowWidth[index][0]) : (background.width * Activity.rowWidth[index][0]))
Repeater {
id: eachRow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment