I have a TabWidget and each tab is a QWidget. One of the tabs have elements added dynamically and when elements exceeded the scrollBar has to appear.
I tried using QScrollArea but its not working for me. My app look like this
xWidget = new QTabWidget();
yWidget = new QTabWidget();
QVBoxLayout *vLayout = new QVBoxLayout;
QScrollArea *scrollArea = new QScrollArea;
Here the widgets added are those that are children of xWidget.
Can anyone please let me how can I add scrollBar here.