[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Issue with QDialog and lifetime
From: Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date: 2005-07-06 16:22:48
Message-ID: 200507061722.48851.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]
On Wednesday 06 July 2005 4:32 pm, Giovanni Bajo wrote:
> James Emerton <ephelon@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
required?
Thanks,
Phil
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic