Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ScrollView {
  2.     id: root
  3.     property Item content: null
  4.  
  5.     Flickable {
  6.         id: adhereFlickable
  7.         height: root.contentHeight
  8.         width: root.contentWidth
  9.         contentHeight: root.contentHeight
  10.         contentWidth: root.contentWidth
  11.         boundsBehavior: Flickable.StopAtBounds
  12.     }
  13.    
  14.     onContentChanged: {
  15.         if(content) {
  16.             content.parent = adhereFlickable
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement