Spec-Zone.ru › Qt 5.15

Класс QWebEngineRegisterProtocolHandlerRequest

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

Заголовок: #include <QWebEngineRegisterProtocolHandlerRequest>
С момента: Qt 5.11
Инициализируется: RegisterProtocolHandlerRequest

Этот класс был представлен в Qt 5.11.

  • Список всех членов, включая унаследованные

Свойства

  • 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.

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

origin : const QUrl

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

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

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

QUrl origin() const

scheme : const QString

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

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

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

QString scheme() const

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

void QWebEngineRegisterProtocolHandlerRequest::accept()

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

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

Примечание: Эта функция может вызываться через систему метаобъектов и из QML. См. Q_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-5.15/qwebengineregisterprotocolhandlerrequest.html

Spec-Zone.ru

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