Utils::PathChooser Class
class Utils::PathChooserLa classe PathChooser è un controllo che consente all'utente di scegliere un percorso. Il controllo è composto da una casella di testo ( QLineEdit ) e da un pulsante "Sfoglia" (Browse) ed è in grado, facoltativamente, di eseguire la sostituzione delle variabili. Altro...
| Header: | #include <PathChooser> |
Tipi pubblici
| enum | Kind { ExistingDirectory, Directory, File, SaveFile, ExistingCommand, …, Any } |
Funzioni pubbliche
| 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) |
Slot pubblici
| void | setFilePath(const Utils::FilePath &) |
| void | setPath(const QString &) |
Segnali
| void | textChanged(const QString &text) |
Descrizione dettagliata
Questa classe dispone di una logica di convalida da integrare in QWizardPage.
Documentazione sui tipi dei membri
enum PathChooser::Kind
L'enumerazione `Kind` descrive il tipo di percorso che un ` PathChooser ` considera valido.
| Costante | Valore | Descrizione |
|---|---|---|
Utils::PathChooser::ExistingDirectory | 0 | Una directory esistente |
Utils::PathChooser::Directory | 1 | Una directory che non deve necessariamente esistere |
Utils::PathChooser::File | 2 | Un file esistente |
Utils::PathChooser::SaveFile | 3 | Un file che non è necessario che esista |
Utils::PathChooser::ExistingCommand | 4 | Un file eseguibile che deve esistere al momento della selezione |
Utils::PathChooser::Command | 5 | Un file eseguibile che può esistere o meno al momento della selezione (ad es. il risultato di una compilazione) |
Utils::PathChooser::Any | 6 | Nessuna restrizione sul percorso selezionato |
Vedi anche setExpectedKind() e expectedKind().
Documentazione delle funzioni membro
Utils::PathChooser::Kind PathChooser::expectedKind() const
Restituisce il tipo di percorso che l’ PathChooser a come valido per la selezione.
Vedi anche Utils::PathChooser::Kind e setExpectedKind().
void PathChooser::setExpectedKind(Utils::PathChooser::Kind expected)
Imposta il tipo di percorso che PathChooser considererà valido per la selezione su expected.
Vedi anche Utils::PathChooser::Kind e 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.