Obsolete Members for QKeySequence

以下成员源于类 QKeySequence 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) operator QString () const
(obsolete) operator int () const

成员函数文档编制

QKeySequence:: operator QString () const

使用 toString () 代替。

Returns the key sequence as a QString 。这相当于调用 toString ( QKeySequence::NativeText ). Note that the result is not platform independent.

QKeySequence:: operator int () const

For backward compatibility: returns the first keycode as integer. If the key sequence is empty, 0 is returned.