[PyQt] QApplication was not created in the main()

Alan Ezust alan.ezust at gmail.com
Sat Jul 26 18:35:27 BST 2014


You are only supposed to create one QApplication, and that should be main.
Why do you want to create a second one somewhere else? That is probably a
mistake.

You can use the "qApp" variable which is from PyQt5.QtCore to refer to this
singleton from other places.



On Sat, Jul 26, 2014 at 5:09 AM, Gelonida N <gelonida at gmail.com> wrote:

> Hi,
>
> I wanted to better understand the exact impact of this warning and whether
> this warning has any impact if my code has to run on windows /Linux only.
>
> thanks in advance for any enlightment.
>
>
>
>
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140726/55d45e79/attachment.html>


More information about the PyQt mailing list