[PyQt] QCoreApplication::exec: The event loop is already running
Brian Kelley
kelley at eyesopen.com
Mon Mar 2 19:49:48 GMT 2009
I am unaware of one. It seems safer to re-organize your code a bit. I tend to have a lot of functional objects, widgets/mainwindows seperated into modules and then I compose them into applications under a single Qapplication, but you may have reasons for doing otherwise.
Brian
On 3/2/09 2:12 PM, "Brent Villalobos" <Brent.Villalobos at pdi.dreamworks.com> wrote:
Brian Kelley wrote:
> When you start another mainwindow (or top level widget for that
> matter) you don't need to call exec_ or make another QApplication.
That's good. Along those same lines does Qt provide a way of querying
whether a QApplication loop is already running so you can avoid making a
new one?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090302/164b8fe0/attachment.html
More information about the PyQt
mailing list