Hi,
I'm creating a QTabWidget and adding a QScrollArea into it. I want the QScrollArea to fit all the avaiable space. How can I do it?
Thanks,
Printable View
Hi,
I'm creating a QTabWidget and adding a QScrollArea into it. I want the QScrollArea to fit all the avaiable space. How can I do it?
Thanks,
Maybe I get you wrong, but what about using a layout inside a tab page? QHBoxLayout.
Hi,
This is the code that I'm using:
Code:
m_pqParametersDock->setWidget(m_pqTabWidget); m_pqScrollAreaConfig->setWidgetResizable(false);
Have I to create a QWidget as the internal Widget of the QTabWidget, then add a layout to it where I will add the QScrollArea?
Thanks,
Your code works fine for me. Only be careful that m_pqScrollAreaConfig != m_pqScrollAreaConfiguracio. Maybe that's the error?
Hi,
It's only a copy paste mistake.Quote:
Only be careful that m_pqScrollAreaConfig != m_pqScrollAreaConfiguracio. Maybe that's the error?
I use a QWidget into the QScrollArea that grows depending on some data that it have to show(it add some custom widgets). This internal widget is deleted when I need to fill up new different data. Then, the tabs that have showed the scrolls of the QScrollArea still show them and I don't want it.Quote:
Your code works fine for me
Thanks,