[PyQt] SIP 4.19+ and private destructors
Phil Thompson
phil at riverbankcomputing.com
Sun Apr 2 11:51:11 BST 2017
On 1 Apr 2017, at 12:51 pm, Raphael Kubo da Costa <rakuco at FreeBSD.org> wrote:
>
> After sip change 1688:71a8ee38b2c6 ("Fixed a regression in determining
> when a shadow class should be generated") I'm having problems with
> QObject-derived classes that define a private destructor.
>
> For example, the following excerpt:
>
> %Module C
> %Import QtCore/QtCoremod.sip
> class C : public QObject {
> private:
> ~C();
> };
>
> generates a "class sipC : public ::C", that fails to build because C's
> destructor is private. Before that change, sip would just generate code
> creating and manipulating C directly.
>
> Was that intentional or is this an actual bug?
Bug - should be fixed in tonight's snapshot.
Thanks,
Phil
More information about the PyQt
mailing list