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. Frozen Column in qtreeview
Forum Updated to NodeBB v4.3 + New Features

Frozen Column in qtreeview

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 393 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.
  • A Offline
    A Offline
    AntriX
    wrote on last edited by
    #1

    Hi,

    I have a treeview in which there are more than 15 columns. I want to freeze leftmost 4 columns so that when I scroll horizontally those 4 columns will remain as it is and other columns will move as scroller moves.
    I have tried an approach mentioned here https://doc.qt.io/qt-5/qtwidgets-itemviews-frozencolumn-example.html but not success.
    Can anyone please share the approach that i should use or link to any reference article/Sample code?

    Thanks

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      That approach works, so perhaps you should explain what "not success" means.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AntriX
        wrote on last edited by
        #3

        Thank you. There were some issues with geometry. Its working now.

        1 Reply Last reply
        0
        • A AntriX has marked this topic as solved on

        • Login

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