[Eric] Creating a Qt5 project

Florian Bruhin me at the-compiler.org
Tue Sep 26 08:06:51 BST 2017


On Tue, Sep 26, 2017 at 06:32:01AM +0000, Phil wrote:
> Anyway, I'm keen to try a Qt5 GUI project. Unfortunately and despite my best
> efforts, I'm getting nowhere. Created files are ending up in the wrong
> directories and I'm getting an error message that reads "module
> 'PyQt5.QtGui' has no attribute 'QApplication'". An extensive Internet search
> has not helped.

In Qt5, many things moved from QtGui to QtWidgets.

QtGui.QApplication only exists in Qt4, you probably want
QtWidgets.QApplication.

Florian

-- 
https://www.qutebrowser.org  | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072  | https://the-compiler.org/pubkey.asc
         I love long mails!  | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/eric/attachments/20170926/49730056/attachment.sig>


More information about the Eric mailing list