【问题标题】:set softkeys on qt for symbian在 qt 上为 symbian 设置软键
【发布时间】: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.

我用PositiveSoftKeysNegativeSoftKey设置了左右软键,但是我永远不能把SelectSoftKey设置到中间那个?我在qt bug repository上没有找到与此相关的东西。我想做的事是充分利用大多数智能手机上的三个软键。有人能弄清楚发生了什么吗?总是谢谢。

【问题讨论】:

    标签: qt symbian


    【解决方案1】:

    E63没有触摸屏,好像只有带触摸屏的智能手机(诺基亚系列)才能将SelectSoftKey设置为中间那个。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多