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. ListView delegate: Rectangle used as separator line is not always rendered (QML Android)
Forum Updated to NodeBB v4.3 + New Features

ListView delegate: Rectangle used as separator line is not always rendered (QML Android)

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 1.1k 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.
  • DiracsbracketD Offline
    DiracsbracketD Offline
    Diracsbracket
    wrote on last edited by Diracsbracket
    #1

    Hi
    I have a ListView with a simple delegate showing an icon, a Label and a Rectangle used as separator line.

    When the view is first rendered and scrolled downwards, all the separator lines are rendered correctly. However, when I swipe to scroll the list back up, the lines are either not rendered at all, or with the wrong, minimal thickness.

    I have tried using different line width (i.e. Rectangle heights) but to no avail.
    I have tried on both Qt 5.10.1 and 5.11.

    How can I fix this?

    1 Reply Last reply
    0
    • DiracsbracketD Offline
      DiracsbracketD Offline
      Diracsbracket
      wrote on last edited by
      #2

      I changed the top level element for the delegate from Rectangle to Item, which solves the problem.

      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