Obsolete Members for QWidget

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

特性

公共函数

(deprecated) bool isTopLevel () const
(deprecated) void setWindowIconText (const QString &)
(deprecated) QWidget * topLevelWidget () const
(deprecated) QString windowIconText () const

信号

(deprecated) void windowIconTextChanged (const QString & iconText )

特性文档编制

windowIconText : QString

This property is deprecated. 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, since 5.2] void QWidget:: windowIconTextChanged (const QString & iconText )

This function is deprecated. We strongly advise against using it in new code.

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

This signal is deprecated.

注意: 通知程序信号对于特性 windowIconText .

该函数在 Qt 5.2 引入。

bool QWidget:: isTopLevel () const

This function is deprecated. We strongly advise against using it in new code.

使用 isWindow () 代替。

QWidget *QWidget:: topLevelWidget () const

This function is deprecated. We strongly advise against using it in new code.

使用 window () 代替。