最终并没有实现添加QML的虚拟键盘,qt-declarative-render2d需要c++11的支持,无法绕过,放弃了。
QT5.7有自带虚拟键盘,在QT5.6下要单独编译。
QT5.6下的官方虚拟键盘源码
在将QT5.6添加支持QML后,就可以添加虚拟键盘的支持
在编译过程中会出现警告
note: the mangling of ‘va_list’ has changed in GCC 4.4
解决办法:
I think that the warning is accurate; the mangling of va_list has
indeed changed on ARM in GCC 4.4 in order to conform to the ARM ABI
specifications. There is an option to turn off warnings about PSABI
issues; -Wno-psabi. I think that option (if not some stronger
option) should be used.
其出处为[https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42748]

QT5.6下QML虚拟键盘编译问题

本文详细记录了在QT5.6环境下添加QML虚拟键盘遇到的问题及解决方案。由于qt-declarative-render2d不支持C++11,作者转向使用QT5.7自带的虚拟键盘。在编译过程中遇到关于‘va_list’的警告,通过使用-gcc选项-Wno-psabi成功解决。
2332

被折叠的 条评论
为什么被折叠?



