이 페이지에서

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.