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

Revision history [back]

click to hide/show revision 1
initial version

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

Bug: QInputMethod::animatingChanged is never emitted

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");
        if (addChannelField.focus) {
            console.log("focused");
            setChannelsView.scrollToBottom();
        }
    }
}

and

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

Neither of them work.

Bug: QInputMethod::animatingChanged is never emitted

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");
        if (addChannelField.focus) {
            console.log("focused");
            setChannelsView.scrollToBottom();
        }
    }
}

and

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

Neither of them work.

Bug: QInputMethod::animatingChanged is never emitted

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.