Jan-04-2023, 11:37 AM
(Jan-02-2023, 06:56 PM)deanhystad Wrote: 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
Thank you both, that seems to fix the problem and totally makes sense.
Hoper this doesn't have consequences in terms of efficiency.