Ezen az oldalon

Utils::PathChooser Class

class Utils::PathChooser

A PathChooser osztály egy olyan vezérlőelem, amely lehetővé teszi a felhasználó számára az elérési út kiválasztását. A vezérlőelem egy „ QLineEdit ” mezőből és egy „Browse” gombból áll, és opcionálisan képes változók helyettesítésére is. Tovább...

Header: #include <PathChooser>

Nyilvános típusok

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

Nyilvános függvények

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)

Nyilvános slotok

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

Jelek

void textChanged(const QString &text)

Részletes leírás

Ez az osztály tartalmaz néhány érvényesítési logikát, amelyeket beágyazhatunk az QWizardPage oldalba.

Tagok típusának dokumentációja

enum PathChooser::Kind

A Kind enum leírja, hogy az PathChooser milyen típusú útvonalakat tekint érvényesnek.

ÁllandóÉrtékLeírás
Utils::PathChooser::ExistingDirectory0Létező könyvtár
Utils::PathChooser::Directory1Olyan könyvtár, amelynek nem kell léteznie
Utils::PathChooser::File2Egy létező fájl
Utils::PathChooser::SaveFile3Egy fájl, amelynek nem kell léteznie
Utils::PathChooser::ExistingCommand4Egy futtatható fájl, amelynek a kiválasztáskor léteznie kell
Utils::PathChooser::Command5Egy futtatható fájl, amely a kiválasztáskor létezhet vagy nem (pl. egy fordítás eredménye)
Utils::PathChooser::Any6Nincs korlátozás a kiválasztott elérési útra vonatkozóan

Lásd még: setExpectedKind() és expectedKind().

Tagfüggvény-dokumentáció

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

Visszaadja azt az útvonal-típust, amelyet az PathChooser érvényesnek tekint a kiválasztáshoz.

Lásd még: Utils::PathChooser::Kind és setExpectedKind().

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

Beállítja, hogy az PathChooser milyen típusú útvonalakat tekint érvényesnek a expected oldal kiválasztásához.

Lásd még: Utils::PathChooser::Kind és 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.