Obsolete Members for QWidget

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

特性

公共函數

(obsolete) bool isEnabledToTLW () const
(obsolete) bool isTopLevel () const
(obsolete) QWidget * topLevelWidget () const

特性文檔編製

windowIconText : QString

This property holds the text to be displayed on the icon of a minimized window

This property only makes sense for windows. If no icon text has been set, this accessor returns an empty string. It is only implemented on the X11 platform, and only certain window managers use this window property.

This property is deprecated.

訪問函數:

QString windowIconText () const
void setWindowIconText ( const QString & )

通知程序信號:

void windowIconTextChanged (const QString & iconText )

另請參閱 windowIcon and windowTitle .

成員函數文檔編製

bool QWidget:: isEnabledToTLW () const

This function is deprecated. It is equivalent to isEnabled ()

bool QWidget:: isTopLevel () const

使用 isWindow () 代替。

QWidget *QWidget:: topLevelWidget () const

使用 window () 代替。

[signal] void QWidget:: windowIconTextChanged (const QString & iconText )

This signal is emitted when the window's icon text has changed, with the new iconText 作為自變量。

This signal is deprecated.

該函數在 Qt 5.2 引入。

注意: 通知程序信號對於特性 windowIconText .