githubuser0xFFFF / QtFreeVirtualKeyboard

A QML based on screen virtual keyboard for embedded QML applications
Other
244 stars 138 forks source link

module "QtQuick.FreeVirtualKeyboard" is not installed #10

Open slowforce opened 5 years ago

slowforce commented 5 years ago

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 commented 3 years ago

Hello. The process to install/use is explained in https://github.com/githubuser0xFFFF/QtFreeVirtualKeyboard/issues/1#issuecomment-137580767 :

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 commented 2 years ago

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:

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'.