The error message indicates that the sizes of the "keys" and "values" vectors passed to the "addData" function of the "QCPGraph" class are different.

In the function call, the first argument is a vector of keys (X-axis values) and the second argument is a vector of values (Y-axis values). These two vectors must have the same size, but in this case, the size of the "keys" vector is 256 and the size of the "values" vector is 1.

To resolve this error, you need to make sure that the sizes of the "keys" and "values" vectors are the same. Check the code that populates these vectors and ensure that they are both filled with the appropriate number of elements

void __cdecl QCPGraphaddDataconst class QVectordouble &const class QVectordouble &bool keys and values have different sizes 256 1

原文地址: https://www.cveoy.top/t/topic/hUOl 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录