[Qt Android] ScrollView+ListView render problem



  • 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?



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.