[PyKDE] Issue with QDialog and lifetime
phil at riverbankcomputing.co.uk
Wed Jul 6 17:22:48 BST 2005
On Wednesday 06 July 2005 4:32 pm, Giovanni Bajo wrote:
> James Emerton <ephelon at gmail.com> wrote:
> >>> Does anyone see a potential problem with exec_loop() transferring
> >>> ownership of the dialog instance back to Python?
> >> Well, which C++ API would you intend to call to achieve this? We still
> >> need the QDialog to keep its parent widget because it is the widget on
> >> which the dialog is modal.
> > [...]
> > You should be able to test this with sip.transfer( dlg, 0 ) just
> > before dlg.exec_loop(). Ultimately, a sipTransfer() should be added
> > to the %MethodCode for exec_loop().
> Yeah this works very well!
> Phil, what do you think of this? It solves a nasty problem.
Could somebody summarise the original problem for me, and why this is
More information about the PyQt