天嵌 ARM开发社区

 找回密码
 注册
查看: 2129|回复: 2

qt4输入法问题

[复制链接]
流星国度 发表于 2013-5-2 17:49:59 | 显示全部楼层 |阅读模式
新建了一个工程,按照tq给的手册,将TQInputMethod.h添加到工程中。

一次按照手册完成了.h  .cpp文件,
将TQInputMethod.so文件放在工程目录下,
并且在.pro工程文件中添加了
LIB +=-L. -lTQInputMethod

编译之后问题:
In file included from tqinput.h:7,
from main.cpp:2:
TQInputMethod.h:6:26: error: QWSInputMethod: No such file or directory
In file included from tqinput.h:7,
from main.cpp:2:
TQInputMethod.h:10: error: expected class-name before ‘{’ token
In file included from main.cpp:2:
tqinput.h:25: error: ISO C++ forbids declaration of ‘QWSInputMethod’ with no type
tqinput.h:25: error: expected ‘;’ before ‘*’ token
make: *** [main.o] Error 1



Jangel 发表于 2013-5-3 10:34:51 | 显示全部楼层
LIBS += -lTQInputMethod
zhpic 发表于 2013-12-10 10:06:04 | 显示全部楼层
我怎么没有找到哪个手册中提到输入法的移植呢。在哪?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-6-29 02:58 , Processed in 1.046875 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表