[PyKDE] PyQt3: QGLWidget should transfer QGLContext ownership?

Giovanni Bajo rasky at develer.com
Thu Mar 23 13:59:53 GMT 2006


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.
-- 
Giovanni Bajo




More information about the PyQt mailing list