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. section-wise scrolling in TableView
QtWS25 Last Chance

section-wise scrolling in TableView

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
tableviewqmlsectionscroll
3 Posts 2 Posters 1.6k Views
  • 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.
  • I Offline
    I Offline
    iridefix
    wrote on 27 Oct 2015, 17:17 last edited by
    #1

    Hi,

    is there a way to make the first section of a TableView stick to the top while scrolling? In particular I want the scrolling to work section-wise.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 27 Oct 2015, 20:46 last edited by
      #2

      Hi,

      Do you mean something like the Frozen Column Example ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      I 1 Reply Last reply 28 Oct 2015, 10:04
      0
      • S SGaist
        27 Oct 2015, 20:46

        Hi,

        Do you mean something like the Frozen Column Example ?

        I Offline
        I Offline
        iridefix
        wrote on 28 Oct 2015, 10:04 last edited by
        #3

        @SGaist That's pretty close to what I like to achieve. Unfortunately I am using a QML TableView. The only difference to the FrozenColumnExample is that my Frozen Rows have a dynamic count. A binary role in my table model determines to which section the entry belongs to. I will try to adapt the FrozenColumnExample to my case in QML. That was my idea anyway, but I was hoping for more simple solution ;) Substituting the sections with seperate TableViews and using a QSortFilterProxyModel to simulate the section behavior is the way to go I guess. Thx for your tip.

        1 Reply Last reply
        0

        1/3

        27 Oct 2015, 17:17

        • Login

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