Getting the height of the horizontal scrollbar in a TableView
Solved
General and Desktop
-
Hi
I would like to adjust the height of a table view to its content.
I get the height of the header and the rows. But I also need the height of the scrollbar to calculate the final height of the table.You can see below that the height of the table is not correct because the height of the scollbar is missing.
I couldn't find how to retrieve the height of this scrollbar.
Any ideas?
-
You can access the scrollbars with QAbstractScrollArea::horizontalScrollBar and QAbstractScrollArea::verticalScrollBar.