Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why is column pinning not supported in QTreeView or QTableView?
Qt 6.11 is out! See what's new in the release blog

Why is column pinning not supported in QTreeView or QTableView?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 331 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.
  • A Offline
    A Offline
    ajaxcrypto
    wrote on last edited by
    #1

    The question is self-explanatory. I had to do elaborate gymnastics and lot of trial and error to be able to pin first n columns so that the next m columns can be scrolled horizontally and required to do for both QTableView (at least had an example, but was not correctly working for item selection) and QTreeView (no example, lots of trial and error).
    Also, item selection was a mess and had to re-implement certain things to make it work (and it still doesn't feel right). So, why does this feature require one to use multiple view with stacking under? Is there a fundamental limitation which prevents from implementing column pinning directly?

    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