View Full Version : QPixmap: Must construct a QApplication before a QPaintDevice
gib
8th September 2019, 06:31
(deleted because I found the cause of the error - a missing DLL)
d_stranz
8th September 2019, 20:25
Actually, the real reason for this is usually declaring a QPixmap instance as an automatic variable (typically as a global variable declared outside of main()) which the C++ runtime constructs prior to executing main() or the QApplication constructor. I suppose it is possible that if a DLL required to construct the QPixmap is missing, that could cause a similar complaint.
gib
8th September 2019, 21:27
The missing DLL was qwt.dll. Making this available stopped the error, I don't know why. I do have a lot of global variables.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.