Closed zhang-peter closed 6 years ago
The QCoreApplication class provides an event loop for basic Qt applications. QApplication is not necessary for every application.
QCoreApplication
QApplication
QGuiApplication and QApplication can be used as the following way for some Gui Applications.
QGuiApplication
app = QApplication(sys.argv) loop = QEventLoop(app) asyncio.set_event_loop(loop)
The
QCoreApplication
class provides an event loop for basic Qt applications.QApplication
is not necessary for every application.QGuiApplication
andQApplication
can be used as the following way for some Gui Applications.