以下成员源于类 QKeySequence 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(obsolete)
|
operator QString () const |
(obsolete)
|
operator int () const |
使用 toString () 代替。
Returns the key sequence as a QString 。这相当于调用 toString ( QKeySequence::NativeText ). Note that the result is not platform independent.
For backward compatibility: returns the first keycode as integer. If the key sequence is empty, 0 is returned.