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.