Nominate our 2022 Qt Champions!

Press hold does not work on my computer.

  • Hi,
    I am testing some press and hold button on my computer and I noticed the Touch hold does not work.
    Using the mouse: (normal behaviour in my opinion)

    • Pressing left button trigger "onPressed"
    • releasing left button trigger "onClicked" and "onReleased"

    Using the touch screen: (wrong behaviour)

    • Pressing finger does not trigger anything
    • releasing left button trigger "onClicked" and "onPressed"

    This behaviour prevent from having a press and hold button in my application which is the bases.
    I think of a driver or windows configuration issue But I cannot figure out how. If someone has some inputs about this, I would be gratefull

    I am using windows 764bits, the touch screen is a DELL S2340T multitouch. I ame using this QML to test.

    @import QtQuick 1.1

    width: 200
    height: 200
    property int doubleClicks: 0
    property int clicks: 0
    property int pressAndHolds: 0
    property int presses: 0

    Text {
        text: "Hold:" + pressAndHolds +"\nPress:"+ presses +"\nclicked"+ clicks
        z: 0
        anchors.fill: parent
        onPressed: presses++
        onClicked: clicks++
        onPressAndHold: pressAndHolds++
        onDoubleClicked: doubleClicks++


    I disabled in the control panel the rightclik function when holding the finger un the same position: See the following snapshot (sorry french OS).I also check the corresponding --register key which has the correct value:

    ! configuration)!

Log in to reply