I want to acces the value of the QSliders that are in my QGridLayout, but I don't find the right command. An example of what I try:
QSlider* slider=ui->gridLayout->takeAt(1)->widget();
The error message I get is:
cannot convert 'QLayoutItem*' to 'QSlider*' in initialization
Is there a command to ask the QSlider right away and not the widget? Is it possible to cast? I tried it, but this also didn't work. How can I solve this?