GridView && horizontal scroll [Solved]
-
Hi all,
I have a GridView in my QML project.
The GridView is populated by a query model.
The grid has a fixed size and there are a lot of element so I need to scroll down and right.The problem is that I can scroll down with mouse but not left-right.
This is my qml file:
@
import QtQuick 1.0
import Qt 4.7Rectangle {
// color: "lightblue"
width: 600; height: 600
Component {
id: name_delegate
Text {
text: display
}
}GridView { cellWidth: 80; cellHeight: 80 anchors.margins: 10 anchors.fill: parent model: queryModel delegate: name_delegate }
}
@Is it possible?
-
I found it.
If usefull for someone:
@
GridView {
cellWidth: 80; cellHeight: 80
anchors.margins: 10
anchors.fill: parent
model: queryModel
delegate: name_delegateflickableDirection: Flickable.HorizontalAndVerticalFlick }
@
-
Please, don't forget to mark thread as [solved]