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 in QtQuick 1.1 vs QtQuick 2.0
Forum Updated to NodeBB v4.3 + New Features

ListView in QtQuick 1.1 vs QtQuick 2.0

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

    In QtQuick 1.1 ListView inherits Flickable (http://qt-project.org/doc/qt-4.8/qml-listview.html) while in QtQuick 2.0 it does not (http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-listview.html). That means that I can't use this to implement pull-to-refresh in QtQuick 2.0: http://dickson-dev.blogspot.com/2012/12/how-to-create-pull-down-listview-in-qml.html

    Any suggestions how to implement properly pull-to-refresh in QtQuick 2.0. In my situation contentY is not zero and guaranteed to change.

    Other problem with ListView: it seems list items in ListView should not change size or you will end up having problems. It is not documented anywhere. I have experienced this problem in 1.1. and 2.0 but I don't have enough data to identify it properly. Am I doing something wrong?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      daliusd
      wrote on last edited by
      #2

      And now I will answer first problem myself: blog I'm pointing to has mistype "n" is missing in isAtYBeginning. ListView still inherits from Flickable (can be seen while reading code).

      Second problem is more complicated however.

      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