Na tej stronie

Utils::PathChooser Class

class Utils::PathChooser

Klasa PathChooser to kontrolka, która pozwala użytkownikowi wybrać ścieżkę. Kontrolka ta składa się z pola wyboru typu „ QLineEdit ” oraz przycisku „Przeglądaj” i może opcjonalnie wykonywać podstawianie zmiennych. Więcej...

Header: #include <PathChooser>

Typy publiczne

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

Funkcje publiczne

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)

Sloty publiczne

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

Sygnały

void textChanged(const QString &text)

Szczegółowy opis

Ta klasa zawiera logikę walidacji przeznaczoną do osadzenia w QWizardPage.

Dokumentacja typów elementów składowych

enum PathChooser::Kind

Enum „Kind” określa rodzaj ścieżki, którą moduł „ PathChooser ” uznaje za prawidłową.

StałaWartośćOpis
Utils::PathChooser::ExistingDirectory0Istniejący katalog
Utils::PathChooser::Directory1Katalog, który nie musi istnieć
Utils::PathChooser::File2Istniejący plik
Utils::PathChooser::SaveFile3Plik, który nie musi istnieć
Utils::PathChooser::ExistingCommand4Plik wykonywalny, który musi istnieć w momencie wyboru
Utils::PathChooser::Command5Plik wykonywalny, który może, ale nie musi istnieć w momencie wyboru (np. wynik kompilacji)
Utils::PathChooser::Any6Brak ograniczeń dotyczących wybranej ścieżki

Zobacz także setExpectedKind() oraz expectedKind().

Dokumentacja funkcji składowych

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

Zwraca typ ścieżki, którą serwis PathChooser uznaje za prawidłową do wyboru.

Zobacz także: Utils::PathChooser::Kind oraz setExpectedKind().

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

Ustawia rodzaj ścieżki, którą serwer PathChooser uzna za prawidłową przy wyborze adresu expected.

Zobacz także: Utils::PathChooser::Kind oraz 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.