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,
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,
Òscar Llarch i Galán
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:
Qt Code:
m_pqParametersDock->setWidget(m_pqTabWidget); m_pqScrollAreaConfig->setWidgetResizable(false);To copy to clipboard, switch view to plain text mode
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,
Òscar Llarch i Galán
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.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.Your code works fine for me
Thanks,
Òscar Llarch i Galán
Bookmarks