Can anyone do a simple example of including qtvirtualkeyboard module into a cmake file? I want to access the classes but I cannot figure out how to include it.
相关问题
- QML: Cannot read property 'xxx' of undefin
- QTextEdit.find() doesn't work in Python
- Qt 5.0.1: Application will not execute outside of
- QT Layouts, how to make widgets in horizontal layo
- QT GUI freezes even though Im running in separate
相关文章
- ubuntu20.4中c#通过c++库调用python脚本
- Qt槽函数自动执行多遍
- Is there a non-java, cross platform way to launch
- How to get a settings storage path in a cross-plat
- Why doesn't valgrind detect a memory leak in m
- QTreeView remove decoration/expand button for all
- qt界面拥挤
- how do I correctly return values from pyqt to Java
This example should work. It was compiled using CMake 3.1.1 and Qt 5.11.1
The code is available in my GitHub account. The QML example is based on the example provided by Qt.
Main CMakeLists.txt
CMakeLists.txt included in the subdirectory
qml.qrc
main.cpp
main.qml
Qt's virtual keyboard is just another module of that can be loaded with
find_package
. The minimal example of cmake file being: