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. QML GridView with sections
Forum Updated to NodeBB v4.3 + New Features

QML GridView with sections

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

    Good day

    I need a qml gridview element that has property like listview's "section ":http://doc.qt.nokia.com/4.7-snapshot/qml-listview.html#section.property-prop where I can visually seperate items to different parts.

    any suggestions are most welcomed

    Thanks!

    Diego DonateD 1 Reply Last reply
    0
    • Y yazwas

      Good day

      I need a qml gridview element that has property like listview's "section ":http://doc.qt.nokia.com/4.7-snapshot/qml-listview.html#section.property-prop where I can visually seperate items to different parts.

      any suggestions are most welcomed

      Thanks!

      Diego DonateD Offline
      Diego DonateD Offline
      Diego Donate
      wrote on last edited by
      #2

      Hi,

      I have the same goal, did you manage to do that? Anyone could give me any idea?

      Thanks!

      1 Reply Last reply
      0
      • p3c0P Offline
        p3c0P Offline
        p3c0
        Moderators
        wrote on last edited by
        #3

        @Diego-Donate AFAIK there is no way to do such in GridView unless you create it on your own.
        But what I'm trying to understand is how does this functionality makes sense in GridView ? How would you group the items atleast visually?

        157

        Diego DonateD 1 Reply Last reply
        0
        • p3c0P p3c0

          @Diego-Donate AFAIK there is no way to do such in GridView unless you create it on your own.
          But what I'm trying to understand is how does this functionality makes sense in GridView ? How would you group the items atleast visually?

          Diego DonateD Offline
          Diego DonateD Offline
          Diego Donate
          wrote on last edited by
          #4

          @p3c0 I have a collection of received files, and I would like to show them in a grid, but with headers displaying the date. I mean, a header "Today", and below a grid of the files received today,; another header "Yesterday", and below the files received yesterday... I hope I am explaining... Thanks

          1 Reply Last reply
          0
          • p3c0P Offline
            p3c0P Offline
            p3c0
            Moderators
            wrote on last edited by
            #5

            @Diego-Donate I think you can achieve this using ListView + GridView

            157

            Diego DonateD 1 Reply Last reply
            1
            • p3c0P p3c0

              @Diego-Donate I think you can achieve this using ListView + GridView

              Diego DonateD Offline
              Diego DonateD Offline
              Diego Donate
              wrote on last edited by
              #6

              @p3c0 Thanks, I was thinking something like that. A ListView with sections (the date for the headers), and a GridView in every element. But I am confused about how to manage the model(s) to get the elements...

              1 Reply Last reply
              0
              • p3c0P Offline
                p3c0P Offline
                p3c0
                Moderators
                wrote on last edited by
                #7

                @Diego-Donate The ListView's model will hold a list of models that you can return. These models can be a simple QStringListModel or for a more complex you can subclass QAbstractItemModel.

                157

                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