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

1
2
3

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.

Author(s)

Michael Lawrence

See Also

qsetSignal, qsetSlot for defining new MOC methods on user classes

Examples

1
2
3
qmocMethods(Qt$QWidget)
widget <- Qt$QWidget()
qsignals(widget)