first app using pyqt6

Solutions on MaxInterview for first app using pyqt6 by the best coders in the world

showing results for - "first app using pyqt6"
Facundo
19 Jun 2020
1from PyQt6.QtWidgets import QApplication, QWidget
2
3# Only needed for access to command line arguments
4import sys
5
6# You need one (and only one) QApplication instance per application.
7# Pass in sys.argv to allow command line arguments for your app.
8# If you know you won't use command line arguments QApplication([]) works too.
9app = QApplication(sys.argv)
10
11# Create a Qt widget, which will be our window.
12window = QWidget()
13window.show()  # IMPORTANT!!!!! Windows are hidden by default.
14
15# Start the event loop.
16app.exec()
17
18
19# Your application won't reach here until you exit and the event
20# loop has stopped.
21
22
queries leading to this page
first app using pyqt6first app using pyqt6