Na této stránce

Utils::PathChooser Class

class Utils::PathChooser

Třída PathChooser je ovládací prvek, který uživateli umožňuje vybrat cestu. Tento ovládací prvek se skládá z pole „ QLineEdit “ a tlačítka „Browse“ a volitelně dokáže provádět substituci proměnných. Více...

Header: #include <PathChooser>

Veřejné typy

enum Kind { ExistingDirectory, Directory, File, SaveFile, ExistingCommand, …, Any }

Veřejné funkce

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)

Veřejné sloty

void setFilePath(const Utils::FilePath &)
void setPath(const QString &)

Signály

void textChanged(const QString &text)

Podrobný popis

Tato třída obsahuje logiku ověřování určenou k začlenění do třídy ` QWizardPage`.

Dokumentace typů členů

enum PathChooser::Kind

Enumerace `Kind` popisuje typ cesty, kterou služba ` PathChooser ` považuje za platnou.

KonstantaHodnotaPopis
Utils::PathChooser::ExistingDirectory0Existující adresář
Utils::PathChooser::Directory1Adresář, který nemusí existovat
Utils::PathChooser::File2Existující soubor
Utils::PathChooser::SaveFile3Soubor, který nemusí existovat
Utils::PathChooser::ExistingCommand4Spustitelný soubor, který musí existovat v okamžiku výběru
Utils::PathChooser::Command5Spustitelný soubor, který v okamžiku výběru může existovat, ale nemusí (např. výsledek kompilace)
Utils::PathChooser::Any6Žádné omezení ohledně vybrané cesty

Viz také setExpectedKind() a expectedKind().

Dokumentace členských funkcí

Utils::PathChooser::Kind PathChooser::expectedKind() const

Vrací typ cesty, kterou PathChooser považuje za platnou pro výběr.

Viz také Utils::PathChooser::Kind a setExpectedKind().

void PathChooser::setExpectedKind(Utils::PathChooser::Kind expected)

Nastaví typ cesty, kterou PathChooser považuje za platnou pro výběr na adrese expected.

Viz také Utils::PathChooser::Kind a 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.