Unsolved Error on initializing QJsonArray
-
Hi all,
I have developed a GUI using Qt 5.9 and Visual Studio 2013 on my development system (workstation) and recently copied the project to a new computer which has the same version of Qt and VS. When I tried to compile the project, it showed C2440 error and C2679 error on the code where it simply initializes and set QJsonArray objects. It puzzles me because this problem did not show up on my workstation, but only on the new computer. Can anyone tell me what can be the cause of this issue please?
Below is the code which shows C2440 error
QJsonArray boolArray = {false, false, false, false}; QJsonArray doubleArray = {0.0, 0.0, 0.0, 0.0};
Below is the code which shows C2679 error
doubleArray = {10, 10, 10, 10};
Thanks,
gongdori
-
Hi,
Are you user both installation are exactly the same ? (Versions, build number etc.)
-
Yes. Both VS and Qt versions are the same on both machines...
-
What if you use
QJsonArray boolArray{false, false, false, false}; QJsonArray doubleArray{0.0, 0.0, 0.0, 0.0};
?
-
@gongdori said in Error on initializing QJsonArray:
C2679
You did install all service packs for Vs 2013 ?