QWidget: Must construct a QApplication...

Post here if you want to help developing something for FAF.

QWidget: Must construct a QApplication...

Postby johnie102 » 10 Apr 2013, 00:22

Hey, I was seeing if I could get the source to run, but if I run main.py I get this error:
QWidget: Must construct a QApplication before a QPaintDevice

I've traced it to the exact line in _clientwindow.py in ClientWindow in __init__ to BaseClass.__init__(self, *args, **kwargs) (line 108)
I don't have any experience with Qt so I don't know how to fix this. Any help?

Also, I could succesfully build the program with py2exe, but when I actually run the exe nothing happens. Not sure what is going wrong there as well.
johnie102
Avatar-of-War
 
Posts: 128
Joined: 27 Dec 2012, 22:26
Has liked: 0 time
Been liked: 2 times
FAF User Name: johnie102

Re: QWidget: Must construct a QApplication...

Postby burnstreet » 11 Apr 2013, 22:11

This error was brought in in the last commit, if you go back to commit a164b74 until it is fixed, it should run fine.

ZePilot said you shouldn't use py2exe, for development you should directly run the main.py.
burnstreet
Crusader
 
Posts: 36
Joined: 23 Mar 2013, 00:36
Has liked: 2 times
Been liked: 3 times
FAF User Name: Burnstreet

Re: QWidget: Must construct a QApplication...

Postby johnie102 » 12 Apr 2013, 18:12

Ok thanks. I'll try that.
johnie102
Avatar-of-War
 
Posts: 128
Joined: 27 Dec 2012, 22:26
Has liked: 0 time
Been liked: 2 times
FAF User Name: johnie102


Return to Contributors

Who is online

Users browsing this forum: No registered users and 1 guest