Skip to content

Instantly share code, notes, and snippets.

@Kakadu
Created September 9, 2013 15:13
Show Gist options
  • Save Kakadu/6496975 to your computer and use it in GitHub Desktop.
Save Kakadu/6496975 to your computer and use it in GitHub Desktop.
ScrollView inside ScrollView doesn't get mouse wheel event.
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