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. Strange ListView behavior
Qt 6.11 is out! See what's new in the release blog

Strange ListView behavior

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.4k 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.
  • J Offline
    J Offline
    jech
    wrote on last edited by
    #1

    Hello,

    I have problems with strange behavior of ListView, which is controlled by a model from Python (PySide). I already asked at PySide mailing list, but I didn't get any helpful answer.

    Since I believe the problem is caused by the QML part, I'll post my problem here. Please get the test application "here":http://www.sendspace.com/file/iyvolr

    What id should and what id does is following. The applications shows a ListView with 5 items. There are 2 buttons - "All" and "Reduce". All button should show all 5 items, Reduce button shows only first 2. But if you try the application, it behaves incorrectly. for example try to press "Reduce" 2 times, you'll get empty delegates. If you press "Reduce" and "All", only 3 items are displayed.

    There might be a bug in my code, but I can't find it. It seems to me it's rather a QML error.

    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