QObject Class Reference

[Kangaroo Index] [Kangaroo Hierarchy] [Headers]


A signal/slot handling base class. More...

#include <qtobjc/QObject.h>

Inherits: NSObject (GNUstepBase)

Public Members

Private Members


Detailed Description

A base class for Qt objects which can be connected together via the signal/slot mechanism. See QObjectInterface for most of the methods originally in the C++ 'qobject.h' header.


+connect:signal:receiver:slot:

Connect a sender/signal to a receiver/slot. If the signal ends with ")", it is considered to originate from a C++ member function, and a slot ending with ")" is considered to have a member function as target. Otherwise, the signal or slot should be an Objective-C style method name.

Parameters:
sender The sender Objective-C instance
slot A string such as "slotShowHelp()" for C++ slots or "slotShowHelp" for Objective-C slots
receiver The receiver Objective-C instance
signal A string such as "activated(int)" for C++ signals or "activated:" for Objective-C signals

+sender:emit:

Emit a signal with no parameter

+sender:emit:intValue:

Emit a signal with an int parameter

+sender:emit:value:

Emit a signal with a void * parameter corresponding to an Objective-C instance

+signalIdForSender:signal:

Creates a QtC Signal for an Objective-C sender/signal combination, and adds it to the qtSignalDictionary

+slotIdForReceiver:slot:

Creates a QtC Slot for an Objective-C receiver/slot combination as target


Documentation generated by duke@tipitina on Sat May 6 11:42:52 EDT 2000
Kdoc