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. QTableView: interactive column resize without QHeaderView
Forum Updated to NodeBB v4.3 + New Features

QTableView: interactive column resize without QHeaderView

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.2k Views 3 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.
  • S Offline
    S Offline
    skebanga
    wrote on 9 May 2017, 09:34 last edited by
    #1

    I have a QTableView with a hidden horizontal header

    table->horizontalHeader()->hide();
    

    No header view

    As you can see, the text in the central column is clipped because of the column width.

    To view the text, the user would need to resize the column, but without a header, I am unable to do this.

    What I would like to be able to do is hover my mouse over the edge of the column and have the normal resize icon appear, and then allow the user to drag the column wider.

    Is this possible?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 May 2017, 20:53 last edited by
      #2

      Hi,

      From the top of my head, you would need to implement the detection logic and movement handling from QHeaderView within QTableView.

      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
      1

      1/2

      9 May 2017, 09:34

      • 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