Resizing some headers when a table gets big enough for a scroll bar
Solved
General and Desktop
-
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?
-
Hi,
One possible way could be to install an event filter that watches for the QShowEvent of the scrollbar.