[PyQt] [BUG] QQmlComponent.create() marks item owner as C++ and they never garbage collected
    Phil Thompson 
    phil at riverbankcomputing.com
       
    Fri Jun  5 11:35:07 BST 2015
    
    
  
On 04/06/2015 3:28 pm, Vladimir Rutsky wrote:
> Hello,
> 
> QQuickItem's objects created with QQmlComponent.create() are owned by
> C++, so when Python variable is being garbage collected item is not
> destroyed.
> 
> As workaroud I can manually call "sip.transferback(item)" for item -
> after this item is properly garbage collected.
> 
> I prepared complete example to reproduce this bug:
> https://gist.github.com/rutsky/31f6cfb15c6aa474317a
Should be fixed in tonight's snapshot.
Any chance you can put together a similar script that demonstrates the 
problem you reported with createShader()?
Thanks,
Phil
    
    
More information about the PyQt
mailing list