Obsolete Members for QWidget

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

特性

公共函數

(obsolete) void getContentsMargins (int * left , int * top , int * right , int * bottom ) const
(obsolete) bool isEnabledToTLW () const
(obsolete) bool isTopLevel () const
(obsolete) void setWindowIconText ( const QString & )
(obsolete) QWidget * topLevelWidget () const
(obsolete) QString windowIconText () const

信號

(obsolete) void windowIconTextChanged (const QString & iconText )

特性文檔編製

windowIconText : QString

This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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 .

成員函數文檔編製

[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.

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

該函數在 Qt 5.2 引入。

void QWidget:: getContentsMargins ( int * left , int * top , int * right , int * bottom ) const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 contentsMargins ().

返迴 Widget 的內容邊距 left , top , right ,和 bottom .

另請參閱 setContentsMargins () 和 contentsRect ().

bool QWidget:: isEnabledToTLW () const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

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

bool QWidget:: isTopLevel () const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 isWindow () 代替。

QWidget *QWidget:: topLevelWidget () const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 window () 代替。