Qt 6.11 is out! See what's new in the release
blog
Positioning List View to avoid InputPanel hidding item
-
Hi everyone,
I have a Page filled with a ColumnLayout composed of a List View and an Input Panel.
The list view delegate is a Text Field. When it is clicked, the Input panel became visible and takes place in the layout.
My problem : If the item is at the bottom of the page, the input panel now hide this item so I want to change the List View position to keep the item visible
The code (not working) :
Page { /* ID */ id: root /* Properties declarations */ /* Signals declarations */ /* Functions */ /* Object properties */ width: Constants.page_width height: Constants.page_height title: Constants.pageTitle_container /* Layout properties */ /* Child objects */ ColumnLayout { id: layout anchors.fill: parent anchors.topMargin: Constants.page_topMargin anchors.bottomMargin: Constants.page_bottomMargin anchors.leftMargin: Constants.page_leftMargin anchors.rightMargin: Constants.page_rightMargin spacing: Constants.layout_defaultSpacing ParameterListView { /* ID */ id: listView_ContainerPage /* Properties declarations */ /* Signals declarations */ /* Functions */ /* Object properties */ orientation: ListView.Vertical model: _containerPageModel /* Layout properties */ Layout.fillWidth: true Layout.fillHeight: true /* Child objects */ /* States */ /* Transitions */ } InputPanel { /* ID */ id: inputPanel_ContainerPage /* Properties declarations */ /* Signals declarations */ /* Functions */ /* Object properties */ visible: active /* Layout properties */ Layout.fillWidth: true /* Child objects */ /* States */ /* Transitions */ } } /* States */ /* Transitions */ }Does someone have any suggestions on this problem please ?
Thank you