[email protected]
[Top] [All Lists]

Re: Inserting a child QObject

Subject: Re: Inserting a child QObject
From: Dimitri
Date: Mon, 06 Mar 2006 22:22:04 +0100

One thing I don't like is that, AFAIK, the QObject base class must be public. I could be wrong about that , but I just tested making it protected, and I got a build error.

Could you provide an example that reproduces the problem? The attached example compiles for me, both Qt 3 and Qt 4.

#include <qobject.h>

class Foo : public QObject {
    Foo(QObject *parent = 0);
<Prev in Thread] Current Thread [Next in Thread>