全志A33开发板QT5.6.2添加虚拟键盘

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最终并没有实现添加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]

在qmake中添加arguments而不是在make中添加

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值