Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QTableView showing extra space
nike.niec last edited by
i am displaying a QTableView with customized QTableModel.
my model has two row and two columns
Parent of QTableView is one of the widget in QTabWidget
My QTableView is showing extra space after displaying a table of two rows and colums,both in horizontal and verticla direction
How to remove this extra unwanted white space.
Also scroll bar is not coming in my view
qxoz last edited by
You have two ways for that:
- Stretch last column;
- Resize QTableView widget to contents.
I think for many applications first way is prefered and you can turn it on just by:
about second way you can read "here":http://stackoverflow.com/questions/1850391/how-do-i-resize-qtableview-so-that-the-area-is-not-scrolled-anymore .