[Eric] Creating a Qt5 project

Florian Bruhin me at the-compiler.org
Tue Sep 26 10:11:14 BST 2017


On Tue, Sep 26, 2017 at 09:09:41AM +0000, Phil wrote:
> On 26/09/17 17:06, Florian Bruhin wrote:
> > 
> > In Qt5, many things moved from QtGui to QtWidgets.
> > 
> > QtGui.QApplication only exists in Qt4, you probably want
> > QtWidgets.QApplication.
> > 
> 
> Thank you for your reply Florian, problem solved.
> 
> Do I still need to import QtGui or is it QtWidgets instead. I think it's
> QtWidgets instead.

Only if you need things which are in QtGui in Qt5 (such as QFont, QColor, ...)

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/30cf95ad/attachment.sig>


More information about the Eric mailing list