Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Horizontal Scrolling GridView in QtQuick 1.1
Qt 6.11 is out! See what's new in the release blog

Horizontal Scrolling GridView in QtQuick 1.1

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 690 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    prettypwnie
    wrote on last edited by
    #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?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      prettypwnie
      wrote on last edited by
      #2

      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!

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved