Obsolete Members for QKeySequence

以下成員源於類 QKeySequence 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

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

成員函數文檔編製

QKeySequence:: operator QString () const

使用 toString () 代替。

返迴鍵序列作為 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.