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

Re: Problem with connect.

Subject: Re: Problem with connect.
From: Mike Adolf
Date: Tue, 22 Jul 2008 23:05:55 -0600
Rohan McGovern wrote:
On Wednesday 23 July 2008 12:28, Mike Adolf wrote:

I see what you mean. I had thought QObject was root to all
classes. If I try to also inherit from QObject, I get the
following warning.

Class SaxHandler inherits from two QObject subclasses
QXmlDefaultHandler and QObject. This is not supported!


Make sure that QObject is the first inherited class, as written in "Using the Meta-Object Compiler (moc)" in the documentation, under the section "Multiple Inheritance Requires QObject to Be First".


Putting it first fixed the problem, but I would have never found that. I thought gmake, make was all I had to worry about.

Thanks for everyone's help.
Mike


--
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>