Obsolete Members for QWidget
QWidget 类的以下成员已被废弃。提供这些成员是为了确保旧的源代码能够继续运行。我们强烈建议不要在新代码中使用它们。
属性
(deprecated)windowIconText : QString
公共函数
(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 &) |
通知器信号:
| void | windowIconTextChanged(const QString &iconText) |
另请参阅 windowIcon 和windowTitle 。
成员函数文档
[deprecated] bool QWidget::isTopLevel() const
此函数已弃用。我们强烈建议不要在新代码中使用它。
请改用isWindow()。
[deprecated] QWidget *QWidget::topLevelWidget() const
此函数已弃用。我们强烈建议不要在新代码中使用它。
请改用window()。
[signal, deprecated] void QWidget::windowIconTextChanged(const QString &iconText)
此函数已弃用。我们强烈建议不要在新代码中使用它。
当窗口的图标文本发生变化时,会发出此信号,并以新的iconText 作为参数。
此信号已弃用。
注意: 这是属性windowIconText 的Notifier 信号。
© 2026 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.