Like many other GUI toolkits, Qt supports connecting handler functions
to signals, which are emitted in response to user
qconnect function connects an R function to a
signal on a Qt object.
qconnect(x, signal, handler, user.data)
The Qt object providing the signal
The name of the signal
The R function to handle the signal
Data to pass to the R function as the last parameter. If omitted, no such argument is passed to the handler.
In Qt, only other
QObject instances can listen to a signal, so
this function creates a dummy object that invokes the R function upon
receipt of the signal.
To disconnect a handler, call the
disconnect method on the
x, passing it the returned dummy
see the example.
QObject instance that is listening to the signal. Will
become invalid when the signal emitter is invalidated.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.