Description Public fields Methods
QWebChannel is used to communicate with QWebChannel C++ Client
QWebChannel is used to communicate with QWebChannel C++ Client
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.
new()
Create a new QWebChannel object
QWebChannel$new(transport, initCallback = NULL)
transport
A R6 object with send
method
initCallback
Function to excute after building connection
exec()
Record and send message
QWebChannel$exec(data, callback = NULL)
data
Message data to send
callback
Function to excute after receiving returned information
send()
Send data to C++ client
QWebChannel$send(data)
data
A string or object which can be serialized to JSON format Send debug message
debug()
QWebChannel$debug(message)
message
Data to send. Handle response type message
handleSignal()
QWebChannel$handleSignal(message)
handleResponse()
QWebChannel$handleResponse(message)
message
Message to handle
handlePropertyUpdate()
QWebChannel$handlePropertyUpdate(message)
clone()
The objects of this class are cloneable with this method.
QWebChannel$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.