TargetDirectoryPage Classclass QInstaller::TargetDirectoryPage
The TargetDirectoryPage class specifies the target directory for the installation. More...
|void||setTargetDir(const QString &dirName)|
|virtual void||initializePage() override|
|virtual bool||isComplete() const override|
|virtual bool||validatePage() override|
End users can leave the page to continue the installation only if certain criteria are fulfilled. Some of them are checked in the validatePage() function, some in the targetDirWarning() function:
- No empty path given as target.
- No relative path given as target.
- Only ASCII characters are allowed in the path if the <AllowNonAsciiCharacters> element in the configuration file is set to
- The following ambiguous characters are not allowed in the path: ["~<>|?*!@#$%^&:,;]
- No root or home directory given as target.
- On Windows, path names must be less than 260 characters long.
- No spaces in the path if the <AllowSpaceInPath> element in the configuration file is set to
Member Function Documentation
Constructs a target directory selection page with core as parent.
Initializes the page's fields based on values from fields on previous pages.
Initializes the page.
Reimplements: PackageManagerPage::isComplete() const.
Requests a warning message to be shown to end users upon invalid input. If the input is valid, the Next button is enabled.
true if a valid path to the target directory is set; otherwise returns
Called when end users leave the page and the PackageManagerGui:currentPageChanged() signal is triggered.
void TargetDirectoryPage::setTargetDir(const QString &dirName)
Sets the directory specified by dirName as the target directory for the installation.
See also targetDir().
QString TargetDirectoryPage::targetDir() const
Returns the target directory for the installation.
See also setTargetDir().
true if the target directory exists and has correct content.
© 2021 The Qt Company Ltd. 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. The Qt Company, Qt and their 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.