Answer the question
In order to leave comments, you need to log in
How to access a QT form element?
A Horizontal Slide was created on the form, and also an LCD Number.
Necessary:
Link them so that after changing the slider, the numbers in the number change.
To solve this problem, I create a slot void on_Slider1_sliderPressed(); In it, I want to turn to Conuter1 (this is my LCD), but it doesn’t work out in any way, when typing his name and accessing through the dot or arrow of the reaction 0, moreover, he simply does not see him. How to work with it? Why doesn't QT see the elements created on the form?
Answer the question
In order to leave comments, you need to log in
How to work with it? Why doesn't QT see the elements created on the form?
Necessary:
Link them so that after changing the slider, the numbers in the number change.
ui->Conuter1->display(ui->Slider1->value());
ui->Slider1->value()
Returns the value in the slider ui->Conuter1->display(int number);
Displays the number on your LCD Number Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question