[SOLVED][HELP] how to get a value of slider from UI_XXXX.h
-
Hi all and thanks for everyone that helped me before, appreciate it!
Here is a new question:
I am recently designing a GUI using dialog.ui
i used a lot of slider, i need to read the slider value,
anyone tell me how can i get it from ui_dialog.h ?
is it possible?
here is a photo of GUI:
!https://www.facebook.com/photo.php?fbid=10152505449848695&set=a.10150169149868695.310362.677773694&type=1&theater()!After this question, i would like to save these values that i get from slider in to a text file that using XML format.
How can i achieve this?Please advise,
Best regards,
YDYD -
access your designer components in constructor/somewhere using ui-><objectname>. Object name is present in the designer property window.
-
hi Dheerendra,
I'm so sorry that, I am not really understand what are you trying to explain to me.
Any command line to execute this?i would like to get the Slider value, for example: my slider range is 0~255,
when i drag to position 100, i would like to read 100 from it, is it possible? -
Hi Dheerendra,
I get what you mean already,
so if my slider name "hueSlide1",
i would like to get the position,then i need to type,
ui->hueSlide1-> ??
so what should i put at "??"
-
ui->hueSlide1->value(). This gives you the current position.
-
ok, thx, appreciate!
-
move this issue to [SOLVED] state