[libcamera-devel] [PATCH 08/11] qcam: ControlsTab: Allow widget to resizeable

Utkarsh Tiwari utkarsh02t at gmail.com
Fri Jul 15 21:13:57 CEST 2022


In QScrollArea by default the widgets are not resizeable.
This means when the user extends the QDialog the widgets don't resize
to fill the space.

Allow them to be resizeable.

Signed-off-by: Utkarsh Tiwari <utkarsh02t at gmail.com>
---
 src/qcam/settings/controls_tab.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/qcam/settings/controls_tab.cpp b/src/qcam/settings/controls_tab.cpp
index 496b5d3b..98962f3c 100644
--- a/src/qcam/settings/controls_tab.cpp
+++ b/src/qcam/settings/controls_tab.cpp
@@ -45,6 +45,7 @@ ControlsTab::ControlsTab(std::shared_ptr<libcamera::Camera> camera_,
 
 	/* Set widget and policies for the scrollarea */
 	setWidget(containerWidget);
+	setWidgetResizable(true);
 }
 
 /* -----------------------------------------------------------------------------
-- 
2.25.1



More information about the libcamera-devel mailing list