Jan-02-2023, 06:56 PM
QApplication() creates a QApplication object, and it sets up your application to run Qt. If you try to create a QAction object before calling QApplication(), you don't have the application framework required to manage the QAction object. The same thing happened when you tried to make a QIcon