Hello,
there are a lot of conversion compiler warnings at QCustomPlot:
Windows 7-64
VisualStudio 2015
QT 5.8
QCustomPlot: 2.0
all 32 bit
For example:
Warning C4244 'argument': conversion from 'const double' to 'int', possible loss of data (compiling source file ..\...\....cpp) ... ...\qcustomplot\qcustomplot.h 403
Warning C4244 '=': conversion from 'int' to 'float', possible loss of data (compiling source file ..\...\....cpp) ... ...\qt\5.8.0-32\5.8\msvc2015\include\qtgui\qmatrix4x4.h 837
Warning C4244 '=': conversion from 'int' to 'float', possible loss of data (compiling source file ..\...\....cpp) ... ...\qt\5.8.0-32\5.8\msvc2015\include\qtgui\qmatrix4x4.h 838
Warning C4244 '=': conversion from 'qreal' to 'float', possible loss of data (compiling source file ..\...\....cpp) ... ...\qt\5.8.0-32\5.8\msvc2015\include\qtgui\qmatrix4x4.h 858
Warning C4244 '=': conversion from 'qreal' to 'float', possible loss of data (compiling source file ..\...\....cpp) ... ...\qt\5.8.0-32\5.8\msvc2015\include\qtgui\qmatrix4x4.h 859
Warning C4244 '=': conversion from 'int' to 'float', possible loss of data (compiling source file ..\...\....cpp) ... ...\qt\5.8.0-32\5.8\msvc2015\include\qtgui\qmatrix4x4.h 880
Warning C4244 '=': conversion from 'int' to 'float', possible loss of data (compiling source file ..\...\....cpp) ... ...\qt\5.8.0-32\5.8\msvc2015\include\qtgui\qmatrix4x4.h 881
Warning C4244 '=': conversion from 'qreal' to 'float', possible loss of data (compiling source file ..\...\....cpp) ... ...\qt\5.8.0-32\5.8\msvc2015\include\qtgui\qmatrix4x4.h 912
Warning C4244 '=': conversion from 'qreal' to 'float', possible loss of data (compiling source file ..\...\....cpp) ... ...\qt\5.8.0-32\5.8\msvc2015\include\qtgui\qmatrix4x4.h 913
Warning C4244 'argument': conversion from 'qreal' to 'float', possible loss of data (compiling source file ..\...\....cpp) ... ...\qt\5.8.0-32\5.8\msvc2015\include\qtgui\qmatrix4x4.h 1091
Warning C4244 'argument': conversion from 'double' to 'float', possible loss of data (compiling source file ..\...\....cpp) ... ...\qt\5.8.0-32\5.8\msvc2015\include\qtgui\qquaternion.h 205
Warning C4244 'initializing': conversion from 'double' to 'float', possible loss of data (compiling source file ..\...\....cpp) ... ...\qt\5.8.0-32\5.8\msvc2015\include\qtgui\qquaternion.h 254
Warning C4244 'initializing': conversion from 'int' to 'float', possible loss of data (compiling source file ..\...\....cpp) ... ...\qt\5.8.0-32\5.8\msvc2015\include\qtgui\qvector3d.h 155
Warning C4244 'initializing': conversion from 'qreal' to 'float', possible loss of data (compiling source file ..\...\....cpp) ... ...\qt\5.8.0-32\5.8\msvc2015\include\qtgui\qvector3d.h 157
Warning C4244 'initializing': conversion from 'int' to 'float', possible loss of data (compiling source file ..\...\....cpp) ... ...\qt\5.8.0-32\5.8\msvc2015\include\qtgui\qvector4d.h 147
Warning C4244 'initializing': conversion from 'qreal' to 'float', possible loss of data (compiling source file ..\...\....cpp) ... ...\qt\5.8.0-32\5.8\msvc2015\include\qtgui\qvector4d.h 149
By the way, unfortunatelly is this sort of warning default disabled at QT:
In qglobal.h comment out this line:
# pragma warning(disable: 4244) /* 'conversion' conversion from 'type1' to 'type2', possible loss of data */
Best regards and thanks for your widget
user