查看完整版本: [-- QGraphicsTextItem 无法输入中文 --]

QTCN开发网 -> Qt QML开发 -> QGraphicsTextItem 无法输入中文 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

nikonice 2018-09-20 09:37

QGraphicsTextItem 无法输入中文

Qt 5.4.1下继承QGraphicsTextItem类在舞台上加入插件,无法输入中文

在网上查说需要加上
setFlags(QGraphicsItem::ItemIsSelectable | QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsFocusable | QGraphicsItem::ItemAcceptsInputMethod);

但加入后依然无法输入中文,请问该怎么解决
[attachment=19502]

钱大宝 2018-09-20 18:39
顶起来


查看完整版本: [-- QGraphicsTextItem 无法输入中文 --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled