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

[Solved] Jolla keyboard doesn't work in custom QtSDK build [answered]

asked 2017-01-05 11:15:59 +0300

7ymekk gravatar image

updated 2017-01-08 18:05:41 +0300

Hey,

I've built the regular Qt SDK for Jolla phone and it seems like the on screen keyboard doesn't show up.

My Qt config is like this:

./configure -opensource -confirm-license -release -shared -pch -opengl es2 -no-harfbuzz -device linux-maemo-n9-g++ -device-option CROSS_COMPILE=/opt/cross/bin/armv7hl-meego-linux-gnueabi- -sysroot /srv/mer/targets/SailfishOS-armv7hl/ -no-xcb -nomake examples -nomake tests -prefix /opt/qt5/

I have also built mlite5 and libsailfishapp, I linked my app with these libs. Then I have uploaded all of the necessary libs tot he phone and ran the app with Qt 5.4.2 libraries. Application runs without any problems, it shows that it is running Qt5.4.2, QML showed up with QtQuick 2.4 and TextField from QtQuickControls 1.3.

The problem is that after clicking on TextField, there is no on-screen keyboard (the focus indicator shows up in the field and is blinking). Keyboard in the rest of OS works as it supposed to work.

Does anyone knows if there is any possibility to show on-screen keyboard via bash or maybe there is dbus service for this? Any help will be appreciated.

PS. some of you may ask - why do you need all of this? I'm building one-purpose device based on Jolla phone and I need Qt5.4 or newer

Thanks 7ymekk

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by nthn
close date 2017-01-08 18:45:04.110420

Comments

you need to wait for the end of month when Sailfish OS 2.1 with Qt 5.6 will be (i hope so) released. Or if you want to build it manually you need to use these sources: https://git.merproject.org/mer-core/qtbase/tree/mer-5.6

coderus ( 2017-01-05 20:54:26 +0300 )edit

Thx for the info. I had a problem compiling mer-5.6, this is why I decided with clean Qt 5.4.2.

Do you have some link backing up your words about Sailfish OS 2.1 potential release date and some changelog? I cannot find it.

7ymekk ( 2017-01-07 11:37:14 +0300 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2017-01-08 18:05:28 +0300

7ymekk gravatar image

Ok, the problem has been solved.

It turned out that Jolla uses Maliit for input handling, so I looked at the code of maliit-exampleapp-plainqt and tried to play with it on my Jolla Phone. I ran the application with my libs (keyboard didn't show up) and the system ones (keyboard worked). Then I ran the app with QT_DEBUG_PLUGINS=1 parameter and it turned out that I didn't have the libmaliitplatforminputcontextplugin.so. So I compiled https://github.com/maliit/framework/tree/master/input-context and it worked :)

edit flag offensive delete publish link more

Question tools

Follow
1 follower

Stats

Asked: 2017-01-05 11:15:59 +0300

Seen: 242 times

Last updated: Jan 08 '17