Na tej stronie

Utils::ProjectIntroPage Class

class Utils::ProjectIntroPage

Klasa `ProjectIntroPage` stanowi standardową stronę kreatora projektu, umożliwiającą użytkownikowi wybranie nazwy i ścieżki projektu. Więcej...

Header: #include <ProjectIntroPage>
Inherits: Utils::WizardPage

Funkcje publiczne

QString description() const
Utils::FilePath filePath() const
bool forceSubProject() const
QString projectName() const
void setForceSubProject(bool force)
bool useAsDefaultPath() const

Pola publiczne

void setDescription(const QString &description)
void setFilePath(const Utils::FilePath &path)
void setProjectName(const QString &name)
void setUseAsDefaultPath(bool u)

Szczegółowy opis

Wygląda podobnie do klasy ` FileWizardPage`, ale zapewnia dodatkową funkcjonalność:

  • Zawiera etykietę opisu u góry, służącą do wyświetlania tekstu wprowadzającego.
  • Przeprowadza walidację na bieżąco (powiązaną z changed()) i wyświetla ostrzeżenia oraz błędy w etykiecie statusu u dołu (strona jest kompletna po pełnej walidacji, dlatego funkcja validatePage() nie została zaimplementowana).

Uwaga: Należy zachować ostrożność podczas modyfikacji pliku projectintropage.ui. Musi on mieć wyczyszczoną geometrię główną oraz ograniczenie typu „ QLayout::SetMinimumSize ” w głównym układzie, w przeciwnym razie QWizard skompresuje go z powodu swoich dziwnych hacków rozszerzających.

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.