Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.6.3, 5.7.1
-
None
-
Windows 10 MSVC2013 Qt5.6.3
Description
QCoreApplication::applicationVersion fails to read PRODUCTVERSION from .rc file. After defining VERSION and a few other variables in .pro file, an .rc file is generated with the appropriate information. Running it from QtCreator with an appropriate debug statement prints "" for QCoreApplication::applicatioVersion.
Appears to work correctly with newer versions of Qt (5.9.*, 5.10.*)
Example attached
Since 5.6 is an LTS, I hope this will be fixed in >=5.6.4?
After examining the differences between working and nonworking versions, the includes in the generated RC files appear to be the main difference (whether that's the cause of the issue or it's something deeper in QCoreApplication, I'm not sure). Files attached, and difference below:
5.6.3:
\# if defined(UNDER_CE) \# include <winbase.h> \# else \# include <windows.h> \# endif
5.10.0:
#include <windows.h>
Attachments
Issue Links
- duplicates
-
QTBUG-57715 QCoreApplication::applicationVersion should have appropriate defaults
- Closed