Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Resizing some headers when a table gets big enough for a scroll bar
Qt 6.12 LTS is out! See what's new in the release blog

Resizing some headers when a table gets big enough for a scroll bar

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

    Hi. I have some headers that I want to resize when the table gets big enough for a scroll bar. My plan so far is to have my code look out for whatever signal the table may trigger when activating a scroll bar, and then have that signal trigger a function that resizes the code. the problem is, I have no idea what the scroll bar activation signal might be. I haven't found any in the QTableWidget, QAbstractItemView, and QAbstractScrollArea documentations so far. Does this signal exist? If so, what is it called? If not, are there any alternatives?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      One possible way could be to install an event filter that watches for the QShowEvent of the scrollbar.

      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

      • Login

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