[PyQt] SIPing a subclass of QApplication

Oliver Heyme olihey at googlemail.com
Mon Mar 30 13:49:45 BST 2009


I copied some core from qapplication.sip and now it's working fine!

Thanks for the fast answers (all of them :) )!
Oli

On Mon, Mar 30, 2009 at 2:26 PM, Phil Thompson
<phil at riverbankcomputing.com> wrote:
> On Mon, 30 Mar 2009 14:21:30 +0200, Oliver Heyme <olihey at googlemail.com>
> wrote:
>> Hi (me again :) ),
>>
>> I have Python 3 embedded in my C++ QT-application and now would like
>> to export my most important classes to Python to be able to "script"
>> the application.
>>
>> I started with LBBApplication which is inherited from QApplication.
>> Now I have the problem with the constructor of my class!
>> What should I use in the sip file to define the constructor:
>>
>> LBBApplication(int &argv,char*argc[]);
>>
>> Please help, I couldnot find any documentation on that!
>
> Have a look at the way PyQt implements QApplication and QCoreApplication.
>
> Phil
>


More information about the PyQt mailing list