[PyQt] qdialog, global reference and RuntimeError: underlying C/C++ object has been deleted

2011-01-04 Thread Lists SVR
Hi, I have a dialog that require some time to load, to speed up the things I keep this dialog in memory, so I create it the first time and then I add a global reference, something like this: app_global.mydialog=mydialog and when this variable is populated I do: app_global.mydialog.exec_()

Re: [PyQt] qdialog, global reference and RuntimeError: underlying C/C++ object has been deleted

2011-01-04 Thread Detlev Offenbach
On Dienstag, 4. Januar 2011, Lists SVR wrote: Hi, I have a dialog that require some time to load, to speed up the things I keep this dialog in memory, so I create it the first time and then I add a global reference, something like this: app_global.mydialog=mydialog and when this

Re: [PyQt] qdialog, global reference and RuntimeError: underlying C/C++ object has been deleted

2011-01-04 Thread Lists SVR
Il giorno mar, 04/01/2011 alle 11.05 +0100, Detlev Offenbach ha scritto: On Dienstag, 4. Januar 2011, Lists SVR wrote: Hi, I have a dialog that require some time to load, to speed up the things I keep this dialog in memory, so I create it the first time and then I add a global