I use the keyboard in the project written on pyside2, without any additional settings it looks like this:
But the same code on pyside6 displays the keyboard in another style:
How can I use style from pyside2 in pyside6?
I use the keyboard in the project written on pyside2, without any additional settings it looks like this:
But the same code on pyside6 displays the keyboard in another style:
How can I use style from pyside2 in pyside6?
Copyright © 2021 Jogjafile Inc.


One possible solution is to download the qtvirtualkeyboard style from Qt5 and use it in Qt6:
Copy the default style from the Qt5 branch of qtvirtualkeyboard to the
qml/QtQuick/VirtualKeyboard/Styles/folder next to the .py file with another name.The structure should be the following:
Change line:
to:
In the .py you must include the qml to QML_IMPORT_PATH and set QT_VIRTUALKEYBOARD_STYLE with the new style: