As a work around the bug can be resolved as follows (without click
sound):

       Button {
            id: createButton
            text: "Create Account"

            anchors {
                horizontalCenter: parent.horizontalCenter
                bottom: parent.bottom
                margins: units.gu(2)
            }
            onClicked: {
                if(!oskVisible){
                    popupMessage("onClicked","You have clicked button...")
                } 
            }
        }
        onStateChanged:{
            if (createButton.pressed && oskVisible){
                popupMessage("onStateChanged","You have clicked button...") 
            }
        }
        states: [
            State {
                name: "pressed"
                when: createButton.pressed
            }
        ]
    }
    
    Connections {
        target: Qt.inputMethod
        onVisibleChanged: {
            oskVisible=!oskVisible
            console.log('oskVisible: '+oskVisible)
        }
    }

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1495118

Title:
  OSK anchored buttons are difficult to click

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1495118/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to