Spec-Zone.ru › Qt

Класс QWebEngineRegisterProtocolHandlerRequest

Класс QWebEngineRegisterProtocolHandlerRequest позволяет принимать или отклонять запросы от API registerProtocolHandler. Подробнее...

Заголовок: #include <QWebEngineRegisterProtocolHandlerRequest>
CMake: find_package(Qt6 COMPONENTS WebEngineCore REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore)
qmake: QT += webenginecore
С момента: Qt 5.11
Создается из: RegisterProtocolHandlerRequest
  • Список всех членов, включая унаследованные

Свойства

  • origin : const QUrl
  • scheme : const QString

Открытые функции

void accept()
QUrl origin() const
void reject()
QString scheme() const
bool operator!=(const QWebEngineRegisterProtocolHandlerRequest &that) const
bool operator==(const QWebEngineRegisterProtocolHandlerRequest &that) const

Подробное описание

См. также QWebEnginePage::registerProtocolHandlerRequested().

Документация по свойствам

[read-only] origin : const QUrl

Это свойство содержит шаблон URL для обработчика протокола.

Это второй параметр из вызова registerProtocolHandler.

Функции доступа:

QUrl origin() const

[read-only] scheme : const QString

Это свойство содержит схему URL для обработчика протокола.

Это первый параметр из вызова registerProtocolHandler.

Функции доступа:

QString scheme() const

Документация по членам-функциям

[invokable] void QWebEngineRegisterProtocolHandlerRequest::accept()

Принимает запрос

Последующие вызовы accept() и reject() игнорируются.

Примечание: Эту функцию можно вызвать через систему метаобъектов и из QML. См. Q_INVOKABLE.

[invokable] void QWebEngineRegisterProtocolHandlerRequest::reject()

Отклоняет запрос.

Последующие вызовы accept() и reject() игнорируются.

Примечание: Эту функцию можно вызвать через систему метаобъектов и из QML. См. Q_INVOKABLE.

bool QWebEngineRegisterProtocolHandlerRequest::operator!=(const QWebEngineRegisterProtocolHandlerRequest &that) const

Возвращает true если that указывает на другой объект, чем этот запрос.

bool QWebEngineRegisterProtocolHandlerRequest::operator==(const QWebEngineRegisterProtocolHandlerRequest &that) const

Возвращает true если that указывает на тот же объект, что и этот запрос.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qwebengineregisterprotocolhandlerrequest.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API