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. ApplicationWindow - how to align content item strict between header and footer?
Forum Updated to NodeBB v4.3 + New Features

ApplicationWindow - how to align content item strict between header and footer?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 264 Views 1 Watching
  • 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.
  • K Offline
    K Offline
    Kobid
    wrote on last edited by
    #1

    Hi,
    Simple example:

    ApplicationWindow {
        header: MyHeader {
            id: myHeader
        }
    
        footer: MyFooter {
            id: myFooter
        }
    
        ListView {
            id: myListView
            anchors.fill: parent
            //Layout.fillWidth: true
            //Layout.fillHeight: true
            //anchors.top: myHeader.bottom
            //anchors.bottom: myFooter.top
            //anchors.right: parent.width
        }
    }
    

    This works but listview's items are visible under footer and header component. How to position listview so it will be strict between header and footer? Tried Layout.fill* and anchor directly to header and footer but nothing works.

    Regards

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bob64
      wrote on last edited by
      #2

      I wonder if the issue you are seeing is what happens if clip: true is not set in the ListView? Maybe try setting that?

      K 1 Reply Last reply
      1
      • B Bob64

        I wonder if the issue you are seeing is what happens if clip: true is not set in the ListView? Maybe try setting that?

        K Offline
        K Offline
        Kobid
        wrote on last edited by
        #3

        @Bob64 said in ApplicationWindow - how to align content item strict between header and footer?:

        I wonder if the issue you are seeing is what happens if clip: true is not set in the ListView? Maybe try setting that?

        You are my hero!!

        1 Reply Last reply
        0
        • K Kobid has marked this topic as solved on

        • Login

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