[SOLVED] Adding horizontal scroll bar to a QSplitter
-
I have used Horizontal QSplitter to show 2 TableWidget on my main window.
and the splitter is configured as Horizontal layout.The problem is , i cant reduced the size of table Widget2 to its minimum level , when i do resize the tablewidget2 with my mouse on splitter, its getting reduced to some extend then finally the entire TableWidget2 is getting hide on my right hand side of the main Window.
@
| | |
| | |
| | |
| | |
| | |
| Table | Table |
| Widget1 | Widget2 |
| | |
| | |
| | |@
the tableWidget2 is going at the minimum of ..like in the picture 2, then its getting hide on the right hand side of my main window.
but i want to reduce the TableWidget2 further...So is there any way to add Horizontal Scrollbar on QSplitter to attain my goal??
@| | |
| | |
| | |
| | |
| | |
| Table | Table |
| Widget1 | Widget2 |
| | |
| | |
| | |@
-
If you try to shrink tablewidget 2 below its minimum size (hint), it will be hidden entirely by the splitter. You can call QSplitter::setChildrenCollapsible(false) to prevent this. Maybe you should set the minimum size (hint) of the table widget 2 to some smaller value.