News for hackers. Stuff that matters.
Re:Hello Qt for Python by nadioca on Sunday May 06, 2018 @01:34AM (#17005366)
more exactly “underlying C/C++ object has been deleted" error.
Re:Hello Qt for Python by JasonFruit on Sunday May 06, 2018 @08:48AM (#17006219)
In my experience, those errors are easy to resolve: just assign the new object to something, so it isn't immediately deleted. A little awkward, maybe, and it shouldn't happen, but if that's the worst quirk of PyQT/PySide, I can deal.
Re:Hello Qt for Python by nadioca on Sunday May 06, 2018 @11:11PM (#17010154)
Those errors are always related with a bad implementation where there is something holding a reference to the qt python object represented by the bidding therefore keeping it alive even when their c++ instance has been already deleted. The solution is to go back to the drawing board and improve the implementation :)