Created
September 9, 2013 15:13
-
-
Save Kakadu/6496975 to your computer and use it in GitHub Desktop.
ScrollView inside ScrollView doesn't get mouse wheel event.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.0 | |
import QtQuick.Controls 1.0 | |
Rectangle { | |
width: 800 | |
height: 600 | |
ScrollView { | |
anchors.fill: parent | |
ListView { | |
model: 4 | |
orientation: ListView.Horizontal | |
spacing: 0 | |
anchors.fill: parent | |
id: mainView | |
delegate: Rectangle { | |
width: 245 | |
height: 600 | |
ScrollView { | |
ListView { | |
orientation: ListView.Vertical | |
model: 30 | |
width: 300 | |
height: 600 | |
delegate: Text { | |
text: "123" | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment