qtbase (version 1.1.0)

qmethods: Introspect methods and properties

Description

There are two types of exposed class members: methods and, for QObject derivatives, properties. These functions return data.frame objects describing methods and properties.

Usage

qmethods(x)
qproperties(x)

Arguments

x
Object of class RQtClass for qmethods, a QObject instance for qproperties

Value

  • For qmethods: a data.frame with columns for method name, return type name, signature string, and whether the method is static and/or protected.

    For qproperties: a data.frame with columns for type name, and whether the property is readable and/or writeble. The property names are stored in the row names.

Examples

Run this code
qmethods(Qt$QObject)
qproperties(Qt$QWidget())

Run the code above in your browser using DataCamp Workspace