Obsolete Members for QWidget

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

特性

公共函数

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

特性文档编制

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 .

成员函数文档编制

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 .