このページでは

Utils::PathChooser Class

class Utils::PathChooser

PathChooser クラスは、ユーザーがパスを選択できるようにするコントロールです。このコントロールは、QLineEdit と「Browse」ボタンで構成されており、オプションで変数の置換を行うこともできます。詳細...

Header: #include <PathChooser>

パブリック型

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

パブリック関数

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)

パブリック・スロット

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

シグナル

void textChanged(const QString &text)

詳細な説明

このクラスには、QWizardPage に組み込むための検証ロジックがいくつか用意されています。

メンバ型のドキュメント

enum PathChooser::Kind

Kind 列挙型は、PathChooser が有効とみなすパスの種類を表します。

定数値説明
Utils::PathChooser::ExistingDirectory0既存のディレクトリ
Utils::PathChooser::Directory1存在する必要のないディレクトリ
Utils::PathChooser::File2既存のファイル
Utils::PathChooser::SaveFile3存在する必要のないファイル
Utils::PathChooser::ExistingCommand4選択時に存在している必要がある実行可能ファイル
Utils::PathChooser::Command5選択時に存在してもいなくてもよい実行可能ファイル(例:ビルドの結果)
Utils::PathChooser::Any6選択されたパスに制限なし

setExpectedKind() およびexpectedKind()も参照してください 。

メンバ関数のドキュメント

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

PathChooser が選択可能とみなすパスの種類を返します。

「 Utils::PathChooser::Kind 」および「setExpectedKind()」も参照してください 。

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

PathChooser が選択対象として有効とみなすパスの種類を、expected に設定します。

Utils::PathChooser::Kind および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.