【发布时间】:2010-07-25 20:21:24
【问题描述】:
在E63或类似的智能手机上,可以有三个软键(左右一个总是命名为“OK”或“Cancel”,中间的一个总是命名为“Select”或“Query”类似动作的名称) screen.QAction 有这个方法:
void setSoftKeyRole ( SoftKeyRole softKeyRole )
,SoftKeyRole 有这些描述:
QAction::NoSoftKey 0 This action should not be used as a softkey
QAction::PositiveSoftKey 1 This action is used to describe a softkey with a positive or non-destructive role such as Ok, Select, or Options.
QAction::NegativeSoftKey 2 This action is used to describe a softkey with a negative or destructive role role such as Cancel, Discard, or Close.
QAction::SelectSoftKey 3 This action is used to describe a role that selects a particular item or widget in the application.
我用PositiveSoftKeys和NegativeSoftKey设置了左右软键,但是我永远不能把SelectSoftKey设置到中间那个?我在qt bug repository上没有找到与此相关的东西。我想做的事是充分利用大多数智能手机上的三个软键。有人能弄清楚发生了什么吗?总是谢谢。
【问题讨论】: