Scroll area not showing the vertical scroll bar
-
I am using a combination of QT creator and code to add widgets to a layout.
QT CREATOR
1) Drop a scroll area 2) Drop verticallayout in scroll area.
Now in my code i am adding widgets to the verticalLayout
QLabel *labelPosTime = new QLabel; verticallayout->addWidget(labelPosTime);
It seems as if the scroll area is totally unaffected by the addition of widgets and it does not show the vertical scroll bar when the widgets exceed the scroll area.
-
Hi
When you write- Drop verticallayout in scroll area.
If that is a red one, its wrong.
You should place one widget in scroll area, then RIGHT click and use Layout menu.
Then you can delete the widget again.
And insert from code.The red layouts are for inserting into other layouts. not use as base layouts.
- Drop verticallayout in scroll area.
-
Hi
When you write- Drop verticallayout in scroll area.
If that is a red one, its wrong.
You should place one widget in scroll area, then RIGHT click and use Layout menu.
Then you can delete the widget again.
And insert from code.The red layouts are for inserting into other layouts. not use as base layouts.
- Drop verticallayout in scroll area.
-
Hi
When you write- Drop verticallayout in scroll area.
If that is a red one, its wrong.
You should place one widget in scroll area, then RIGHT click and use Layout menu.
Then you can delete the widget again.
And insert from code.The red layouts are for inserting into other layouts. not use as base layouts.
- Drop verticallayout in scroll area.