Utils::PathChooser Class
class Utils::PathChooserDie Klasse „PathChooser“ ist ein Steuerelement, mit dem der Benutzer einen Pfad auswählen kann. Das Steuerelement besteht aus einem Feld „ QLineEdit “ und einer Schaltfläche „Durchsuchen“ und kann optional Variablenersetzungen vornehmen. Mehr...
| Header: | #include <PathChooser> |
Öffentliche Typen
| enum | Kind { ExistingDirectory, Directory, File, SaveFile, ExistingCommand, …, Any } |
Öffentliche Funktionen
| Utils::FilePath | baseDirectory() const |
| QStringList | commandVersionArguments() const |
| Utils::PathChooser::Kind | expectedKind() const |
| Utils::FilePath | filePath() const |
| bool | isReadOnly() const |
| QString | promptDialogFilter() const |
| QString | promptDialogTitle() const |
| void | setBaseDirectory(const Utils::Lazy<Utils::FilePath> &base) |
| void | setCommandVersionArguments(const QStringList &arguments) |
| void | setExpectedKind(Utils::PathChooser::Kind expected) |
| void | setPromptDialogFilter(const QString &filter) |
| void | setPromptDialogTitle(const QString &title) |
| void | setReadOnly(bool b) |
Öffentliche Slots
| void | setFilePath(const Utils::FilePath &) |
| void | setPath(const QString &) |
Signale
| void | textChanged(const QString &text) |
Ausführliche Beschreibung
Diese Klasse verfügt über eine Validierungslogik zur Einbettung in „ QWizardPage “.
Dokumentation zu den Mitgliedstypen
enum PathChooser::Kind
Die Enumeration „Kind“ beschreibt die Art von Pfad, die ein „ PathChooser “ als gültig ansieht.
| Konstante | Wert | Beschreibung |
|---|---|---|
Utils::PathChooser::ExistingDirectory | 0 | Ein vorhandenes Verzeichnis |
Utils::PathChooser::Directory | 1 | Ein Verzeichnis, das nicht vorhanden sein muss |
Utils::PathChooser::File | 2 | Eine vorhandene Datei |
Utils::PathChooser::SaveFile | 3 | Eine Datei, die nicht vorhanden sein muss |
Utils::PathChooser::ExistingCommand | 4 | Eine ausführbare Datei, die zum Zeitpunkt der Auswahl vorhanden sein muss |
Utils::PathChooser::Command | 5 | Eine ausführbare Datei, die zum Zeitpunkt der Auswahl vorhanden sein kann oder auch nicht (z. B. Ergebnis eines Builds) |
Utils::PathChooser::Any | 6 | Keine Einschränkung hinsichtlich des ausgewählten Pfads |
Siehe auch setExpectedKind() und expectedKind().
Dokumentation zu Mitgliedsfunktionen
Utils::PathChooser::Kind PathChooser::expectedKind() const
Gibt die Art von Pfad zurück, die PathChooser als gültig für die Auswahl betrachtet.
Siehe auch „ Utils::PathChooser::Kind “ und „ setExpectedKind()“.
void PathChooser::setExpectedKind(Utils::PathChooser::Kind expected)
Legt fest, welche Art von Pfad der „ PathChooser “ als gültig für die Auswahl unter „ expected “ betrachtet.
Siehe auch „ Utils::PathChooser::Kind “ und „ expectedKind()“.
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.