Obsolete Members for QWidget

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

特性

公共函数

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

信号

(弃用) 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 .

成员函数文档编制

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 () 代替。

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