-
Notifications
You must be signed in to change notification settings - Fork 0
Hello Qt
matthewhauer edited this page Jun 13, 2016
·
3 revisions
http://www.tutorialspoint.com/pyqt/pyqt_hello_world.htm
The import statement needs to refer to 'QtWidgets' instead of 'QApplication'.
Similarly, the calls to "QApplication" need to point to "QtWidgets" instead.
Straightforward setup: Get an Application, create a Widget, add a label to the widget, set widget geometry, position the label, add a window title, show the widget.
There's clearly more going on, but it's a starting point.
IDEA reports that 'from PyQt5 import QtWidgets' can't locate QtWidgets, but IDEA runs the script just fine, so it's probably an IDE configuration problem on my end, that impacts the static code analysis.