QWebEngineFileSystemAccessRequest Class▲
- 
					Header: QWebEngineFileSystemAccessRequest 
- 
					Since: Qt 6.4 
- 
					CMake: find_package(Qt6 REQUIRED COMPONENTS WebEngineCore) target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore) 
- 
					qmake: QT += webenginecore 
Detailed Description▲
To allow web applications to access local files of the computer, applications must connect to QWebEnginePage::fileSystemAccessRequested, which takes a QWebEngineFileSystemAccessRequest instance as an argument.
If a web applications requests access to local files or directories, QWebEnginePage::fileSystemAccessRequested will be emitted with an QWebEngineFileSystemAccessRequest instance as an argument where accessFlags() indicates the type of the requested access: read, write or both. The signal handler needs to then either call accept() or reject().
Member Type Documentation▲
enum QWebEngineFileSystemAccessRequest::AccessFlag▲
flags QWebEngineFileSystemAccessRequest::AccessFlags
This enum describes the type of the requested access: read, write or both. The options can be OR-ed together from the following list:
| Constant | |
|---|---|
| 0x1 | |
| 0x2 | 
The AccessFlags type is a typedef for QFlags<AccessFlag>. It stores an OR combination of AccessFlag values.
enum QWebEngineFileSystemAccessRequest::HandleType▲
This enum describes the type of the requested file system entry.
| Constant | |
|---|---|
| 0 | |
| QWebEngineFileSystemAccessRequest::Directory | 1 | 
Property Documentation▲
[read-only] accessFlags : const AccessFlags▲
Contains the requested file access rights.
Access functions:
- 
							accessFlags() const 
[read-only] filePath : const QUrl▲
Returns the file path this file system access request is referring to.
Access functions:
- 
							filePath() const 
[read-only] handleType : const HandleType▲
Returns the type of the requested file system entry. (File or directory)
Access functions:
- 
							handleType() const 
[read-only] origin : const QUrl▲
This property holds the URL of the web page that issued the file system access request.
Access functions:
- 
							origin() const 
Member Function Documentation▲
void QWebEngineFileSystemAccessRequest::accept()▲
Accepts the request to access local files.
void QWebEngineFileSystemAccessRequest::reject()▲
Rejects a request to access local files.
Related Non-Members▲
bool operator!=(const QWebEngineFileSystemAccessRequest &lhs, const QWebEngineFileSystemAccessRequest &rhs)▲
Returns true if lhs and rhs point to different requests.
bool operator==(const QWebEngineFileSystemAccessRequest &lhs, const QWebEngineFileSystemAccessRequest &rhs)▲
Returns true if lhs and rhs both point to the same request.




