virtualkeyboard released by Qt 5.12 didn't work
-
Hello everyone ! Recently I want to use qt virturalkeyboard in my project, and it works well when I run the project in qt creator. However when I release it by qt for desktop, it prints "Skipping plugin qtvirtualkeyboardplugin.dll due to disabled dependencies (Qt5Qml Qt5Quick)" and the keyboard won't eject. I read the document and add some dlls ,but the keyboard is still disable. Is there anyone who know about it? Thanks!
-
Hi and welcome to devnet,
Did you use windeployqt for your application deployment ?
-
Hi and welcome to devnet,
Did you use windeployqt for your application deployment ?
-
Are you using the
--qmldir
option ? -
@SGaist No,in fact I know few about it,and I only use "windeployqt xx.exe".
My project is a Qapplicationwidget.In Qt 5.12.0,I just add "Qt += virtualkeyboard" in .pro file and "qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));" in main function.
And I used"c:\rc>windeployqt xx.exe --qmldir C:\Qt\Qt5.12.0\5.12.0\mingw73_64\qml" just now,it still printed the same line starts with "skipping". -
Then start your application withe
QT_DEBUG_PLUGINS
environment variable set to 1 to see what's going on. -
Then start your application withe
QT_DEBUG_PLUGINS
environment variable set to 1 to see what's going on.@SGaist Sorry to borther you again.
I add QT_DEBUG_PLUGINS environment variable and lots of messages showed,but I don't understand what they mean.
There is a line like"The plugin 'C:/Qt/Qt5.12.0/5.12.0/mingw73_64/plugins/imageformats/qwebpd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" in every paragraph.As I said,I had never used project with qml.Now I find any qml example released by my qt can't work (just crashed) ,although I have used windeployqt --qmldir.I have no idea and I‘m very confuzed.
-
@SGaist Sorry to borther you again.
I add QT_DEBUG_PLUGINS environment variable and lots of messages showed,but I don't understand what they mean.
There is a line like"The plugin 'C:/Qt/Qt5.12.0/5.12.0/mingw73_64/plugins/imageformats/qwebpd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" in every paragraph.As I said,I had never used project with qml.Now I find any qml example released by my qt can't work (just crashed) ,although I have used windeployqt --qmldir.I have no idea and I‘m very confuzed.
@GreenM said in virtualkeyboard released by Qt 5.12 didn't work:
ses incompatible Qt library. (Cannot mix debug and release libraries.)
this means you have a mix of debug and release libraries.
qwebpd.dll is the debug version of that library. You need the release version without d in front of .dll