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)

属性文档

[deprecated] windowIconText : QString

该属性已被弃用。我们强烈建议不要在新代码中使用它。

该属性用于保存最小化窗口图标上要显示的文本。

该属性仅对窗口有效。如果未设置图标文本,该访问器将返回空字符串。该属性仅在 X11 平台上实现,而且只有某些窗口管理器才使用该窗口属性。

该属性已被弃用。

访问函数:

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

Notifier 信号:

void windowIconTextChanged(const QString &iconText)

另请参阅 windowIconwindowTitle

成员函数文档

[deprecated] bool QWidget::isTopLevel() const

该函数已被弃用。我们强烈建议不要在新代码中使用它。

请使用isWindow() 代替。

[deprecated] QWidget *QWidget::topLevelWidget() const

该函数已被弃用。我们强烈建议不要在新代码中使用它。

请使用window() 代替。

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

该函数已被弃用。我们强烈建议不要在新代码中使用它。

当窗口的图标文本发生变化时会发出该信号,新的iconText 作为参数。

该信号已被弃用。

注: 用于属性windowIconText 的通知信号。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.