Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module "QtQuick.FreeVirtualKeyboard" is not installed #10

Open
slowforce opened this issue Nov 11, 2018 · 2 comments
Open

module "QtQuick.FreeVirtualKeyboard" is not installed #10

slowforce opened this issue Nov 11, 2018 · 2 comments

Comments

@slowforce
Copy link

I clone this package, and in the examples/qmlapp directory, I run make command and it compiles correctly, I got virtualkeyboardqmldemo application, I run this application, my system reports module "QtQuick.FreeVirtualKeyboard" is not installed , are there any steps missed to fire the application?

@ricardofantin
Copy link

Hello.
The process to install/use is explained in #1 (comment) :

I just cloned the project from github and did the following steps to run the example:

cd into src folder
qmake
make install
cd into examples/qmlapp
qmake
make
run virtualkeyboardqmldemo.exe

I'm using Qt 5.4.1 on Windows with MinGW

I'm guessing you did not run make install in src/ folder.

@thfrei
Copy link

thfrei commented Mar 15, 2022

Maybe a small addition. I ran into the same problem, and since I am quite new to Qt, it took me a while to figure it out. I am not trying to run the demo, rather another application that uses the Keyboard as a dependency:

import QtQuick.FreeVirtualKeyboard 1.0

The steps above needed to be changed for me, slightly. I am running Windows and Qt 5.12.12 with mingw.

grafik

cd src
qmake
# i get some warnings, but never mind
# now instead of make install (make does not exist on windows in this mingw setup)
mingw32-make install

Now, the FreeVirtualKeyboard is installed C:\Qt\5.12.12\mingw73_64\qml\QtQuick\FreeVirtualKeyboard

I added this path into my *.pro-file and voila, it works.

#...
QML_IMPORT_PATH += C:\Qt\5.12.12\mingw73_64\qml\
QML_IMPORT_PATH += C:\Qt\5.12.12\mingw73_64\qml\QtQuick
#...

Hope that helps! :-)

PS:

I needed to do these changes (adding Qt.Quick in front of FreeVirtualKeyboard)

diff --git a/src/InputPanel.qml b/src/InputPanel.qml
index ebda9ae..c823b77 100644
--- a/src/InputPanel.qml
+++ b/src/InputPanel.qml
@@ -1,6 +1,6 @@
 import QtQuick 2.0
 import "."
-import FreeVirtualKeyboard 1.0
+import QtQuick.FreeVirtualKeyboard 1.0

 /**
  * This is the QML input panel that provides the virtual keyboard UI
diff --git a/src/KeyButton.qml b/src/KeyButton.qml
index bb42bdd..25846ad 100644
--- a/src/KeyButton.qml
+++ b/src/KeyButton.qml
@@ -1,5 +1,5 @@
 import QtQuick 2.0
-import FreeVirtualKeyboard 1.0
+import QtQuick.FreeVirtualKeyboard 1.0

PPS:

  • warnings after qmake
Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!
RCC: Warning: No resources in 'virtualkeyboard.qrc'.
RCC: Warning: No resources in 'virtualkeyboard.qrc'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants