[PyKDE] PyQt - getting unexpected async reply in threaded ap

Nicholas John Murison nick at urgusabic.net
Sun Feb 23 20:15:00 GMT 2003


On Sun, 2003-02-23 at 17:26, Jim Bublitz wrote:
> On 23-Feb-03 Nicholas John Murison wrote:
> > As far as I can remember, somewhere in the PyQt it says there
> > should be a global qApp variable.  However, my code can't seem
> > to find it, so I've passed on the object through constructor
> > parameters to the threads.
>  
> > This seems to be working, and I hope it is the right way to go
> > about these kind of things.
> 
> You should be able to access qApp if you just do:
> 
>    from qt import qApp
> 
> or if you do (not the best form):
> 
>    from qt import *

Ok, I really have been acting thick.  I was doing "import qt" and
referencing "qApp", rather than "qt.qApp".

I shall bow my head in shame for a suitable period of time.

Thanks,
-- 
Nicholas John Murison
~~~~~~~~~~~~~~~~~~~~~
http://www.urgusabic.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20030223/70a39aa9/attachment.bin


More information about the PyQt mailing list