On Tuesday 04 March 2008, Arve Knudsen wrote:
> On Mon, Mar 3, 2008 at 5:39 PM, Phil Thompson
>
> <[EMAIL PROTECTED]> wrote:
> > On Monday 03 March 2008, Arve Knudsen wrote:
> >  > Hello all
> >  > I've run into a problem wrapping a subclass of Qt 3's QSettings. The
> >  > problem is that QSettings' copy constructor is private and SIP wants
> >  > to copy construct an instance of my class. How can I solve this?
> >
> >  What are the circumstances in which SIP wants to create the instance?
>
> This is the generated code at least: http://pastebin.com/m64228e27.

I can't reproduce this. The simple attached test does the right thing.

Phil
%Module foo

%Import QtCore/QtCoremod.sip

class Foo : QSettings
//class Foo
{
%TypeHeaderCode
#include "foo.h"
%End

public:
    Foo();
};
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to