We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

Bug: QInputMethod::animatingChanged is never emitted

asked 2014-01-02 13:21:50 +0200

Venemo gravatar image

updated 2014-01-02 13:23:24 +0200

The signal QInputMethod::animatingChanged is never emitted on the Jolla.

This is bad, because sometimes you want to do something after the virtual keyboard pops up (example: scroll to the bottom of the screen, etc.), but without this signal you can't. Note that onFocusChanged of the TextField component is emitted before the virtual keyboard shows up.

I tried it in two ways:

Connections {
    target: Qt.inputMethod
    onAnimatingChanged: {
        console.log("animating changed");
    }
}

and

Component.onCompleted: {
    Qt.inputMethod.animatingChanged.connect(function() {
        console.log("animating changed");
    });
}

Neither of them work.

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
1

answered 2014-01-02 14:34:39 +0200

Pekka Vuorela gravatar image

True, signaling for this hasn't been implemented. Also once it is, it will change value slightly behind actual state due to keyboard living in separate process.

As a workaround you could have a small delay before triggering UI changes. Popup transition takes 400 ms.

edit flag offensive delete publish link more

Comments

Thanks! :)

Venemo ( 2014-01-02 14:57:36 +0200 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2014-01-02 13:21:50 +0200

Seen: 307 times

Last updated: Jan 02 '14