[PyKDE] Re: PyQt3: QGLWidget should transfer QGLContext ownership?

Phil Thompson phil at riverbankcomputing.co.uk
Thu Mar 23 21:34:55 GMT 2006


On Thursday 23 March 2006 1:59 pm, Giovanni Bajo wrote:
> Hello Phil,
>
> any reason why this QGLWidget's constructor:
>
>  QGLWidget(QGLContext *,QWidget * /TransferThis/ = 0,const char * = 0,
>     const QGLWidget * = 0,WFlags = 0);
>
> doesn't also transfer the ownership of the QGLContext?
> QGLWidget::~QGLWidget always deletes the context. I also verified that a
> manual sip.trasnferto does the right thing and avoid double deletion
> crashes.

Thanks - will be in tonight's snapshots.

Phil




More information about the PyQt mailing list