Quark  0.1
ObjectUtils Class Reference

General-purpose QObject utilities. More...

#include <ObjectUtils.h++>

Static Public Member Functions

static bool invokeSlot (QObject *target, const char *slot, const QVariantList &args=QVariantList())
 Invokes a slot. More...
 

Static Public Attributes

static const int MAX_SLOT_ARGS
 The maximum number of slot arguments that can be passed to invokeSlot(). More...
 

Detailed Description

General-purpose QObject utilities.

Author
Mark Lindner

Member Function Documentation

◆ invokeSlot()

static bool invokeSlot ( QObject *  target,
const char *  slot,
const QVariantList &  args = QVariantList() 
)
static

Invokes a slot.

Parameters
targetThe target object.
slotThe slot to invoke.
argsArguments to pass to the slot. If there are more than MAX_SLOT_ARGS arguments in this list, the extra arguments will be ignored.

Member Data Documentation

◆ MAX_SLOT_ARGS

const int MAX_SLOT_ARGS
static

The maximum number of slot arguments that can be passed to invokeSlot().


The documentation for this class was generated from the following file: