Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.49 KB | None | 0 0
  1. ScrollView {
  2.     id: root
  3.     default property alias children1: adhereFlickable.children
  4.     Flickable {
  5.         id: adhereFlickable
  6.         height: root.contentHeight
  7.         width: root.contentWidth
  8.         contentHeight: root.contentHeight
  9.         contentWidth: root.contentWidth
  10.         boundsBehavior: Flickable.StopAtBounds
  11.     }
  12.     onChildrenChanged: {
  13.         print("fuck")
  14.         if (children.length > 1)
  15.             children[children.length - 1].parent = adhereFlickable
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement