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. StackView,MouseArea push a ListView page, No responese after back using system back key.
Forum Updated to NodeBB v4.3 + New Features

StackView,MouseArea push a ListView page, No responese after back using system back key.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 118 Views
  • 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
    senmx
    wrote on 7 Oct 2020, 03:18 last edited by senmx 10 Jul 2020, 14:18
    #1

    StackView, when using MouseArea to push the page and the page contains ListView, there will be no response after back using the system back button, and it must be tap again. If you use button push, there is no problem.

        //This is no problem
        Button {
            anchors.centerIn: parent
            text: "Button PUSH"
            onClicked: {
                openDetail(0);
            }
        }
    
        //After push, and then use the system return key to return, the MouseArea will not respond
        MouseArea {
            width: parent.width
            height: 100
            focus: true
            Rectangle {
                anchors.fill: parent
                color: "black"
                Text {
                    anchors.fill: parent
                    text: "MouseArea PUSH - problematic"
                    color:"white"
                    horizontalAlignment: Text.AlignHCenter
                    verticalAlignment: Text.AlignVCenter
                }
            }
            onClicked: {
                openDetail(1);
            }
        }
        function openDetail(i) {
            stack.push(com_detail);
        }
    

    Demo:
    https://github.com/senlinmuvs/TestQtAndroid

    1 Reply Last reply
    0

    1/1

    7 Oct 2020, 03:18

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved