Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Qt Android] ScrollView+ListView render problem
Forum Updated to NodeBB v4.3 + New Features

[Qt Android] ScrollView+ListView render problem

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 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.
  • S Offline
    S Offline
    SilveRulezz
    wrote on last edited by
    #1

    Hello guys! I check Qt 5.2.1 on Android and found the issue.
    ListView in ScrollView works different for different devices. It have some rendering problem when swipe to the end of ListView. This video https://vimeo.com/86611683 shows this problem.

    @import QtQuick 2.2
    import QtQuick.Controls 1.1

    Rectangle {
    width: 360;
    height: 360;

    ScrollView {
        anchors.fill: parent;
        ListView {
            id: listView;
            anchors.fill: parent;
            model: listViewModel;
            delegate: listViewDelegate;
        }
    }
    
    Component {
        id: listViewDelegate;
        Rectangle {
            anchors { left: parent.left; right: parent.right; }
            height: listView.height / (listViewModel.count-2);
            color: model.color;
            Text {
                anchors.centerIn: parent;
                text: model.color;
            }
        }
    }
    
    ListModel {
        id: listViewModel;
        ListElement { color: "red"; }
        ListElement { color: "orange"; }
        ListElement { color: "yellow"; }
        ListElement { color: "green"; }
        ListElement { color: "deepskyblue"; }
        ListElement { color: "blue"; }
        ListElement { color: "blueviolet"; }
    }
    

    }
    @

    I have test this code on many devices ( HTC Desire HD, Samsung Galaxy S2, S3, S4, Samsung Note 2, 3, Google Nexus 4, 5). Only Samsung Galaxy S3 does not have this problem.

    Who is faced with this problem?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tomasl
      wrote on last edited by
      #2

      Hi,
      I'm not sure it's related, but the appearance looks quite similar to what we experienced when working on listview sections. That ended up in the following bug report:

      https://bugreports.qt-project.org/browse/QTBUG-36698

      Tomas

      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