Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Positioning List View to avoid InputPanel hidding item
Qt 6.11 is out! See what's new in the release blog

Positioning List View to avoid InputPanel hidding item

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 182 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    clement_ciele
    wrote on last edited by aha_1980
    #1

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved