嗨害嗨
13/12
2023

Qt OpenGL使用虚拟键盘

MainWindow.cpp中添加头文件
#include <QtPlatformHeaders/QWindowsWindowFunctions>

添加代码
QWindowsWindowFunctions::setHasBorderInFullScreen(this->windowHandle(), true);

环境中添加

export QMLSCENE_DEVICE=softwarecontext
export QT_IM_MODULE=qtvirtualkeyboard

参考:
https://blog.csdn.net/poolooloo/article/details/131006691
https://github.com/FreeCAD/FreeCAD/blob/0649e38bffc9fef46f46123f53dc0790db001fdc/src/Gui/MainWindow.cpp#L1774
https://doc.qt.io/archives/qt-5.9-devicecreation/qtee-troubleshooting.html#ts-11

评论已关闭