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  | [email protected] (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072  | https://the-compiler.org/pubkey.asc
         I love long mails!  | https://email.is-not-s.ms/

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Eric mailing list
[email protected]
https://www.riverbankcomputing.com/mailman/listinfo/eric

Reply via email to