Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TButton按下并滑动界面,滑动结束之后不会回弹 #15

Open
skyvostro opened this issue Dec 25, 2019 · 1 comment
Open

TButton按下并滑动界面,滑动结束之后不会回弹 #15

skyvostro opened this issue Dec 25, 2019 · 1 comment

Comments

@skyvostro
Copy link

import QtQuick 2.0
import Toou2D 1.0

Item {
Loader{
id:cac_loader;
anchors.fill: parent;
asynchronous: true
onStatusChanged: bii.visible = status !==Loader.Ready
}

Component{
    id: cacComponent

    TFlickable{
        anchors.horizontalCenter: parent.horizontalCenter
        clip: true
        contentWidth:width;
        contentHeight: layout.height;
        scrollBar.horizontal: false;

        GridView{
            id:layout
            anchors.horizontalCenter: parent.horizontalCenter
            width: 1024
            height: 600

            cellWidth: 320
            cellHeight: 200


            model: cac_model
            delegate: cac_delegate
        }
    }
}

ListModel {
    id: cac_model

    ListElement {name: "空调一"}
    ListElement {name: "空调二"}
    ListElement {name: "空调三"}
    ListElement {name: "空调四"}
    ListElement {name: "空调五"}
    ListElement {name: "空调六"}
    ListElement {name: "空调七"}
    ListElement {name: "空调八"}
}

Component{
    id: cac_delegate

    TButton{
        label.text: name
        label.font.bold: true;
        label.color: "#FFF"
        background.color: "#6AC044"
        theme.groupName: "success"
        width: 300
        height: 200
    }
}

TBusyIndicator{
    id:bii;
    anchors.centerIn: parent;
}

Component.onCompleted: {
    cac_loader.sourceComponent = cacComponent;
}

}

@xuin-net
Copy link
Collaborator

感谢你报告了该缺陷,这个问题已通过#1f1d922修复了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants