qt5.7.1 虚拟键盘

参考:

https://blog.csdn.net/wsj18808050/article/details/52682566 

https://blog.csdn.net/i7891090/article/details/76040368

https://jingyan.baidu.com/article/a948d65119f4c90a2ccd2e50.html

#在Pro文件中修改
QT       += core gui multimedia qml quick

 

#在Pro文件中添加
CONFIG += link_pkgconfig
static {
    QT += svg
    QTPLUGIN += qtvirtualkeyboardplugin
}
 
//在main代码中添加
qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));

你可能感兴趣的:(qt)