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. Flickable ( ListView) contentheight is not fixed even if model is the same.
Forum Updated to NodeBB v4.3 + New Features

Flickable ( ListView) contentheight is not fixed even if model is the same.

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 860 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.
  • M Offline
    M Offline
    mallah.rajesh
    wrote on last edited by
    #1

    Hi ,

    We have a self contained minimal example that shows that even if all
    the list items are instantiated the contentheight keeps changing.

    To replicate the problem run the QML and see in log that the content
    height is not the same. The problem due to this is that scrollbars that depend on visibleArea.heightRatio property do not have a fixed height the keep changing
    while you scroll the contentitem.

    The example code is:
    http://pastebin.com/v4AdjFdb

    Regds
    Rajesh Kumar Mallah.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mallah.rajesh
      wrote on last edited by
      #2

      Just now discovered that the content changed during scrolling
      as the delegates were getting recreated and becoming visible.
      this is because the function was generating random text.

      even when the function was truned to return same output for
      same input the contentheight is giving different values.

      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