Important: Please read the Qt Code of Conduct -

Horizontal Scrolling GridView in QtQuick 1.1

  • Hello all,

    I am trying to make a grid view that lays the elements out so they can be scrolled horizontally. I thought from the documentation that I should just need to do:

    flow: GridView.FlowTopToBottom
    flickableDirection: Flickable.HorizontalFlick

    However, apparently the flow property doesn't exist in QtQuick 1.1, which I unfortunately need to use due to compatibility. Changing the flickable direction works but since the items are still laid out in the wrong way, I'm not actually able to scroll to the additional items (they are still at the bottom and I'm trying to scroll right to left).

    Does anyone know how I can get my grid view to be able to scroll through items horizontally in QtQuick 1.1?

  • For anyone else who may come across this problem, I was able to hack together a way. I rotated each item in the GridView by 90 degrees, then rotated the GridView itself by 270 degrees and it actually works!

Log in to reply