QWebChannel: QWebChannel is used to communicate with QWebChannel C++...

Description Public fields Methods

Description

QWebChannel is used to communicate with QWebChannel C++ Client

QWebChannel is used to communicate with QWebChannel C++ Client

Public fields

transport

A R6 object used to transport message.

execCallbacks

List of callbacks which should be executed after receiving data

execId

Identity number of QObject method excuting.

objects

List of QObject which caching object data of C++ side.

Methods

Public methods


Method new()

Create a new QWebChannel object

Usage
QWebChannel$new(transport, initCallback = NULL)
Arguments
transport

A R6 object with send method

initCallback

Function to excute after building connection


Method exec()

Record and send message

Usage
QWebChannel$exec(data, callback = NULL)
Arguments
data

Message data to send

callback

Function to excute after receiving returned information


Method send()

Send data to C++ client

Usage
QWebChannel$send(data)
Arguments
data

A string or object which can be serialized to JSON format Send debug message


Method debug()

Usage
QWebChannel$debug(message)
Arguments
message

Data to send. Handle response type message


Method handleSignal()

Usage
QWebChannel$handleSignal(message)

Method handleResponse()

Usage
QWebChannel$handleResponse(message)
Arguments
message

Message to handle


Method handlePropertyUpdate()

Usage
QWebChannel$handlePropertyUpdate(message)

Method clone()

The objects of this class are cloneable with this method.

Usage
QWebChannel$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


altairwei/rwebchannel documentation built on May 27, 2021, 1:08 p.m.