[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: QObject inheritance order matters?
From: Alexander Neundorf <neundorf () kde ! org>
Date: 2003-06-13 17:28:51
[Download RAW message or body]
On Friday 13 June 2003 18:24, Unai Garro Arrazola wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I'm not quite sure if this problem is specific to Qt or general c++
> problem, but this got me quite confused.
>
> I have a class inherited from QTableItem, but I want to use signals with
> it, so I wrote:
>
...
> Is there anything wrong (in theory) about inheriting in the other way
> around?
I don't know the exact reason, but when using multiple inheritance, and one of
the "parents" is a QObject, it can be only one QObject and it must be the
first one.
Bye
Alex
--
Work: alexander.neundorf@jenoptik.com - http://www.jenoptik-los.de
Home: neundorf@kde.org - http://www.kde.org
alex@neundorf.net - http://www.neundorf.net
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic