c++ - Using OpenGL together with Qt Data Visualization -


i'm trying render 3d bar graph using data visualization library of qt. application want develop requires bars in different ranges must colored different color. make things more concrete

1) yellow if value <=5000

2) red if value between 5001 , 15000

3) blue if value above 15000

however qt's libraries not allow me color bars different colors. class qbar3dseries has 3 different options color style.

1) q3dtheme::colorstyleuniform : bars colored same color. out of question.

2) q3dtheme::colorstyleobjectgradient : bars colored same gradient. again out of question.

3) q3dtheme::colorstylerangegradient : temporary solution. bars colored according ratio of value of individual bar , value of highest bar. here, bars displayed in gradients , more 1 color used , want 1 color each bar. , based on relationship largest value, not on values want specify. (in example 5000, 15000 , 20000)

maybe need other methods intervene in process system renders graph. can use opengl this? (which means lot of work, don't know opengl) appreciated. thanks.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -