이 페이지에서

Utils::ProjectIntroPage Class

class Utils::ProjectIntroPage

ProjectIntroPage 클래스는 프로젝트에 대한 표준 마법사 페이지로, 사용자가 프로젝트의 이름과 경로를 선택할 수 있게 해줍니다. 더 보기...

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.