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. QTableWidget: allow sorting only by specific columns?
Forum Updated to NodeBB v4.3 + New Features

QTableWidget: allow sorting only by specific columns?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 928 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.
  • V Offline
    V Offline
    Violet Giraffe
    wrote on 29 Apr 2016, 08:03 last edited by Violet Giraffe
    #1

    I'm reasonably familiar with sorting, inc. custom sorting, QTreeViews and QTreeWidgets. But every time I did it before I simply turned the sorting on in that widget's properties and could sort by any column. But what if there are some columns such that sorting them makes no sense? What's the best way to handle this? Ideally, I would like to not see the sorting control (an arrow in the header) at all for those columns. Is it doable?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 29 Apr 2016, 21:24 last edited by
      #2

      Hi,

      AFAIK, it's not implemented and there's even an old feature request for it.

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

      1 Reply Last reply
      0

      1/2

      29 Apr 2016, 08:03

      • Login

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