from PyQt.QtCore import QCoreApplication # create an instance of QCoreApplication app = QCoreApplication([]) # do some stuff here... # exit the application QCoreApplication.exit()
from PyQt.QtCore import QCoreApplication # create an instance of QCoreApplication app = QCoreApplication([]) # retrieve the application version version = app.applicationVersion() print("Application version:", version)This example shows how to create an instance of QCoreApplication and retrieve the application version using the applicationVersion() method.