junior-root
27th May 2017, 12:34
Hello.
I have a floating QDockWidget that hold a QWidget (QDockWidget::setWidget(QWidget * widget).
This QWidget hold a QToolBar and a QScrollArea grouped into a QVBoxLayout.
I want to resize QDockWidget to show full content.
For this I need that QScrollArea show full content too, without needing scroolbars.
How can I do that?
+------------------------+
| QDockWidget |
| +-------------------+ |
| | QWidget | |
| | QVBoxLayout | |
| | QToolBar | |
| | +-------------+ | |
| | | QScrollArea | | |
| | | +---------+ | | |
| | | | QWidget | | | |
| | | +---------+ | | |
| | +-------------+ | |
| | | |
| +-------------------+ |
+------------------------+
I have a floating QDockWidget that hold a QWidget (QDockWidget::setWidget(QWidget * widget).
This QWidget hold a QToolBar and a QScrollArea grouped into a QVBoxLayout.
I want to resize QDockWidget to show full content.
For this I need that QScrollArea show full content too, without needing scroolbars.
How can I do that?
+------------------------+
| QDockWidget |
| +-------------------+ |
| | QWidget | |
| | QVBoxLayout | |
| | QToolBar | |
| | +-------------+ | |
| | | QScrollArea | | |
| | | +---------+ | | |
| | | | QWidget | | | |
| | | +---------+ | | |
| | +-------------+ | |
| | | |
| +-------------------+ |
+------------------------+