Hello all.
I'm using a QTableView within a QWidget window.
The table shows up fine but it does not have a vertical scroll bar so
the bottom part of it gets cut off.
How do I enable the vertical scroll bar?
I'm using 5.7.
Thank you.
N
Hello all.
I'm using a QTableView within a QWidget window.
The table shows up fine but it does not have a vertical scroll bar so
the bottom part of it gets cut off.
How do I enable the vertical scroll bar?
I'm using 5.7.
Thank you.
N
Have you tried this??or You can try with QTableWidget instead.Qt Code:
setVerticalScrollBarPolicy( Qt::ScrollBarAlwaysOn );To copy to clipboard, switch view to plain text mode
Last edited by Gokulnathvc; 13th September 2017 at 04:54. Reason: updated contents
Have you put this table view inside of a layout on your widget? If you have simply placed it on the widget without the layout, then there is nothing to manage its size and it won't get the information needed to automatically display the scroll bars when it is sized to be smaller than its contents.I'm using a QTableView within a QWidget window.
The "solution" suggested by Gokulnathvc won't actually work if the table view is not in a layout. Yes, the scrollbar will always be visible, but the bottom of the table will still be cut off.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks