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. Qml, problems with Loader and ListView objects
Forum Updated to NodeBB v4.3 + New Features

Qml, problems with Loader and ListView objects

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 3 Posters 369 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.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on last edited by
    #1

    Hi, as you can see in the pictures I have got an application with a header in the top, a footer in the bottom and a body in the middle.
    The body has got a Loader object in it.
    The Loader reads a file where there is a ListView.
    By scrolling the items go out of the body and go over the header and the footer.
    Where is the error?
    alt text
    alt text
    Download sources

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    R 1 Reply Last reply
    0
    • mrdebugM mrdebug

      Hi, as you can see in the pictures I have got an application with a header in the top, a footer in the bottom and a body in the middle.
      The body has got a Loader object in it.
      The Loader reads a file where there is a ListView.
      By scrolling the items go out of the body and go over the header and the footer.
      Where is the error?
      alt text
      alt text
      Download sources

      R Offline
      R Offline
      Rammaam007
      wrote on last edited by
      #2

      @mrdebug , Ensure the list bounding dimensions are proper and not overlapping the header and footer. Then try to set the clip property true to the parent of the list view.

      1 Reply Last reply
      1
      • mrdebugM Offline
        mrdebugM Offline
        mrdebug
        wrote on last edited by
        #3

        Solved with clip: true

        Need programmers to hire?
        www.labcsp.com
        www.denisgottardello.it
        GMT+1
        Skype: mrdebug

        J.HilkJ 1 Reply Last reply
        0
        • mrdebugM mrdebug

          Solved with clip: true

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @mrdebug well, clip is a heavy operation on the draw, the better option would be to draw your list view as the first item of the scene, you do this by moving it to the top of your file hierarchy (preferably) or setting the z value of the other components to something != 0 (the default)


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          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