Virtual keyboard top black screen in Yocto
Asked Answered
C

1

0

I am developing a device using VAR-SOM-MX7 developing in Yocto Sumo. I managed to add virtual keyboard into my QApplication but when the keyboard appeared, it overlaps the application. The textEdit field still getting the input from the virtual keyboard but just cannot show the textEdit field while typing.

I have tried to:

qputenv("QMLSCENE_DEVICE", QByteArray("softwarecontext"))
CONFIG += disable-desktop

In qml I changed the keyboard layout:

keyboardBackground: Rectangle {
   color: "transparent"
}

But still I am getting black screen on top overlapping my application.

enter image description here

Coenocyte answered 5/5, 2020 at 8:1 Comment(0)
C
1

After long try, I finally found a solution to solve this issue. The virtual keyboard was created using another QQuickWindow and this window overlap my QWidget application window. I just have to find the vk window, and use the QWindow setMask function to mask of the black region.

Hope this can help others too since I couldn't find any other solution online on this matter.

Coenocyte answered 11/5, 2020 at 9:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.