QObjectInterface Class Reference

[Kangaroo Index] [Kangaroo Hierarchy] [Headers]


An interface for a signal/slot handling base class. More...

#include <qtobjc/QObject.h>

Public Members


Detailed Description

An interface declaring most of the methods that were in the C++ 'qobject.h' header. Since the Qt library uses multiple inheritance these methods are defined as an Objective-C protocol. Then classes, such as QWidget, can inherit from both QObject and QPainterDevice. They inherit the interface 'QObjectInterface' as a protocol from QObject, and behaviour from the 'QPainterDevice' implementation. From the point of view of Objective-C, the methods in QObject with the same names in QWidget are reimplementations of the same 'QObjectInterface' interface. In fact, the two implementations call the same QtC function calls, and invoke the same C++ member functions.

See the interfaces QObject and QtSupport for the remainder of the public methods for QObject.

This interface is implemented by the two categories QObject(QObjectImplementation) and QWidget(QObjectImplementation). Both implementations call the same C++ member functions of QObject.


-initWithParent:name:

Create a new QObject with the given parent and name

-emit:

Emit a signal with no parameter

-emit:intValue:

Emit a signal with an int parameter

-emit:value:

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


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