Extending Qt Creator Manual | ProjectIntroPage

Extending Qt Creator Manual 4.6.2

# ProjectIntroPage Class

(Utils::ProjectIntroPage)

The ProjectIntroPage class is the standard wizard page for a project, letting the user choose its name and path. More...

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

- List of all members, including inherited members

## Properties

- description : QString
- forceSubProject : bool
- path : QString

- projectName : QString
- useAsDefaultPath : bool

## Public Functions

| ProjectIntroPage(QWidget *parent = 0)
virtual | ~ProjectIntroPage()
QString | description() const
bool | forceSubProject() const
void | insertControl(int row, QWidget *label, QWidget *control)
virtual bool | isComplete() const
QString | path() const
int | projectIndex() const
QString | projectName() const
void | setForceSubProject(bool force)
void | setProjectDirectories(const QStringList &directoryList)
void | setProjectList(const QStringList &projectList)
bool | useAsDefaultPath() const
bool | validateProjectName(const QString &name, QString *errorMessage)

- 3 public functions inherited from Utils::WizardPage

## Public Slots

void | setDescription(const QString &description)
void | setPath(const QString &path)
void | setProjectName(const QString &name)
void | setProjectNameRegularExpression(const QRegularExpression &regEx)
void | setUseAsDefaultPath(bool u)

## Signals

void | activated()

- 1 signal inherited from Utils::WizardPage

## Detailed Description

The ProjectIntroPage class is the standard wizard page for a project, letting the user choose its name and path.

Looks similar to FileWizardPage, but provides additional functionality:

- Contains a description label at the top for displaying introductory text.
- Does on the fly validation (connected to changed()) and displays warnings and errors in a status label at the bottom (the page is complete when fully validated, validatePage() is thus not implemented).

Note: Careful when changing projectintropage.ui. It must have main geometry cleared and QLayout::SetMinimumSize constraint on the main layout, otherwise, QWizard will squeeze it due to its strange expanding hacks.

## Property Documentation

### description : QString

Access functions:

QString | description() const
void | setDescription(const QString &description)

### forceSubProject : bool

Access functions:

bool | forceSubProject() const
void | setForceSubProject(bool force)

### path : QString

Access functions:

QString | path() const
void | setPath(const QString &path)

### projectName : QString

Access functions:

QString | projectName() const
void | setProjectName(const QString &name)

### useAsDefaultPath : bool

Access functions:

bool | useAsDefaultPath() const
void | setUseAsDefaultPath(bool u)

## Member Function Documentation

### ProjectIntroPage::ProjectIntroPage(QWidget *parent = 0)

Default constructs an instance of ProjectIntroPage.

### `[virtual]` ProjectIntroPage::~ProjectIntroPage()

Destroys the instance of ProjectIntroPage. The destructor is virtual.

### `[signal]` void ProjectIntroPage::activated()

### void ProjectIntroPage::insertControl(int row, QWidget *label, QWidget *control)

### `[virtual]` bool ProjectIntroPage::isComplete() const

### int ProjectIntroPage::projectIndex() const

### void ProjectIntroPage::setProjectDirectories(const QStringList &directoryList)

### void ProjectIntroPage::setProjectList(const QStringList &projectList)

### `[slot]` void ProjectIntroPage::setProjectNameRegularExpression(const QRegularExpression &regEx)

### bool ProjectIntroPage::validateProjectName(const QString &name, QString *errorMessage)