Utils::ProjectIntroPage Class
class Utils::ProjectIntroPageProjectIntroPage 类是项目的标准向导页面,允许用户选择项目的名称和路径。更多内容...
| Header: | #include <ProjectIntroPage> |
| Inherits: | Utils::WizardPage |
公共函数
| QString | description() const |
| Utils::FilePath | filePath() const |
| bool | forceSubProject() const |
| QString | projectName() const |
| void | setForceSubProject(bool force) |
| bool | useAsDefaultPath() const |
公共槽
| void | setDescription(const QString &description) |
| void | setFilePath(const Utils::FilePath &path) |
| void | setProjectName(const QString &name) |
| void | setUseAsDefaultPath(bool u) |
详细说明
与FileWizardPage 相似,但提供了额外功能:
- 顶部包含一个描述标签,用于显示介绍性文本。
- 支持实时验证(与 changed() 关联),并在底部的状态标签中显示警告和错误(页面在完全通过验证后即视为完成,因此未实现 validatePage() 方法)。
注意: 修改 projectintropage.ui 时请务必谨慎 。其主几何体必须清空,且主布局上必须保留QLayout::SetMinimumSize 约束,否则QWizard 会因其奇特的扩展机制而将其挤压变形。
Copyright © The Qt Company Ltd. and other contributors. 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.