qt-interest@trolltech.com
[Top] [All Lists]

Re: inheritance of emitted argument types

Subject: Re: inheritance of emitted argument types
From: David Boddie
Date: Thu, 20 Jul 2006 14:12:17 +0200
Andre Haupt wrote:

> I dont have a reasonable solution to your problem, but what if you use a
> pointer to AbstractThing in your signals and slots? You can then check
> in your slot at runtime, whether this pointer points to a fooThing,
> barThing or bazThing by means of QObject::isA(). Your fooThing, barThing
> and bazThing would have to inherit QObject though.

Or take a look at registering custom value types with QMetaType:

http://doc.trolltech.com/qq/qq14-metatypes.html

-- 
David Boddie
Technical Writer, Trolltech ASA

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>