QCPGraph addData Error: Keys and Values Size Mismatch
The error message indicates that the sizes of the "keys" and "values" vectors passed to the "addData" function of the "QCPGraph" class are different. \n\nIn 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. \n\nTo 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.
原文地址: https://www.cveoy.top/t/topic/pDUW 著作权归作者所有。请勿转载和采集!