2010-06-28 82 views
1

在E63或类似的智能手机上,可以有三个软键(左侧和右侧总是命名为“OK”或“取消”,中间一个总是命名为“Select”或“Query”行动的名字)在screen.QAction有这个方法:在qt上为symbian设置软键

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. 

我已经使用PositiveSoftKeysNegativeSoftKey设置左,右软键,但我永远不可以做SelectSoftKey到中间的那个?在qt bug库中找不到与此相关的任何内容。我想要做的就是充分利用大多数智能手机上的三个软键。任何人都可以弄清楚发生了什么?感谢你。

回答

0

E63没有触摸屏,似乎只有具有触摸屏的智能手机(诺基亚系列)才能将SelectSoftKey设置为中间位置。