En esta página

Utils::PathChooser Class

class Utils::PathChooser

La clase PathChooser es un control que permite al usuario seleccionar una ruta. El control consta de un cuadro de diálogo « QLineEdit » y un botón «Examinar», y, opcionalmente, puede realizar sustituciones de variables. Más...

Header: #include <PathChooser>

Tipos públicos

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

Funciones públicas

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)

Ranuras públicas

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

Señales

void textChanged(const QString &text)

Descripción detallada

Esta clase cuenta con una lógica de validación para su integración en QWizardPage.

Documentación sobre los tipos de miembros

enum PathChooser::Kind

La enumeración `Kind` describe el tipo de ruta que un ` PathChooser ` considera válida.

ConstanteValorDescripción
Utils::PathChooser::ExistingDirectory0Un directorio existente
Utils::PathChooser::Directory1Un directorio que no tiene por qué existir
Utils::PathChooser::File2Un archivo existente
Utils::PathChooser::SaveFile3Un archivo que no tiene por qué existir
Utils::PathChooser::ExistingCommand4Un archivo ejecutable que debe existir en el momento de la selección
Utils::PathChooser::Command5Un archivo ejecutable que puede existir o no en el momento de la selección (p. ej., el resultado de una compilación)
Utils::PathChooser::Any6Sin restricciones en la ruta seleccionada

Véase también setExpectedKind() y expectedKind().

Documentación de las funciones miembro

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

Devuelve el tipo de ruta que PathChooser considera válida para la selección.

Véase también Utils::PathChooser::Kind y setExpectedKind().

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

Establece el tipo de ruta que PathChooser considerará válida para seleccionar en expected.

Véase también Utils::PathChooser::Kind y 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.