Learn R Programming

qtbase (version 1.1.0)

qmocMethods: List MOC methods

Description

Access information describing the Qt Meta Object Compiler (MOC) methods defined for a class. These are typically signals and slots, although arbitrary methods/constructors are also supported.

Usage

qmocMethods(x)
qsignals(x)
qslots(x)

Arguments

x
A QObject object or derived class (as an RQtClass).

Value

  • For qmocMethods, a data.frame with columns for the method name, type (signal, slot, etc), signature, return type, and nargs (argument count).

    qsignals returns a similar data.frame containing only signal methods and the columns name and signature.

    qslots returns a similar data.frame containing only slot methods and the columns name, signature and return.

See Also

qsetSignal, qsetSlot for defining new MOC methods on user classes

Examples

Run this code
qmocMethods(Qt$QWidget)
widget <- Qt$QWidget()
qsignals(widget)

Run the code above in your browser using DataLab