PDA

View Full Version : How to plot a single x-Coordinate value on QVector3D



RajenderReddyPatlolla
29th January 2019, 06:53
I tried below function to pass first argument value and remaining as zero(float type cast). It couldn't shown any plot on the GUI Coordinate widget
QVector3D point(X_Coordinate_Acclrtn, 0.f, 0.f);

d_stranz
29th January 2019, 19:27
All this code does is to declare a variable named "point" of type QVector3D, initialized to "X_Coordinate_Acclrtn" (whatever that is), 0, and 0. Why do you think simply declaring a variable will do anything at all on a GUI?

RajenderReddyPatlolla
30th January 2019, 07:28
Thanks for the solution and i will follow as you suggested for further post.