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. GridView && horizontal scroll [Solved]
Forum Updated to NodeBB v4.3 + New Features

GridView && horizontal scroll [Solved]

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 8.1k 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.
  • L Offline
    L Offline
    luca
    wrote on last edited by
    #1

    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.7

    Rectangle {
    // 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?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      luca
      wrote on last edited by
      #2

      I found it.
      If usefull for someone:
      @
      GridView {
      cellWidth: 80; cellHeight: 80
      anchors.margins: 10
      anchors.fill: parent
      model: queryModel
      delegate: name_delegate

              flickableDirection: Flickable.HorizontalAndVerticalFlick
          }
      

      @

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DenisKormalev
        wrote on last edited by
        #3

        Please, don't forget to mark thread as [solved]

        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