QML that support Qt5.6 and Qt6.2
-
I have a project that for a period will likely need to support multiple embedded targets. One can only go up to Qt5.6 but the other is targeting Qt6.2. Using the same QML across both targets would be ideal. The project uses the Enterprise virtual keyboard plugin which is how it was packaged with Qt5.6 but with Qt6.2 that is just a standard QtQuick (not Enterprise) plugin.
My question:
Is it possible to 'move' the Enterprise VirtualKeyboard plugin to the standard QtQuick area such that all the QML would import like this:import QtQuick.VirtualKeyboard 2.0 import QtQuick.VirtualKeyboard.Settings 2.0
or is there namespace information (i.e.
Enterprise
) built in to the dynamic libraries themselves (e.g. qtvirtualkeyboardstylesplugin.dll ?) Is there anything else I might be overlooking? My simple tests have so far failed with this kind of message:qrc://///BCSupport/BCFunctional.qml:7 module "QtQuick.VirtualKeyboard" plugin "qtvirtualkeyboardstylesplugin" not found
-
After looking at some code, I can't do what I'm trying to do without a recompile of the virtual keyboard source.
In the Qt5.6 source, there is a string that describes the qrc path that VK QML files are installed to. The styles.qrc and qmldir would need to change as well.