I create connections between widged in the constructor and also initialize them. But the connect not working (inside the methode).
Code says alot:
MyApp::MyApp(QWidget *parent) : QMainWindow(parent)
{
ui.setupUi(this);
// slider to spinbox
connect(ui.slider, SIGNAL(valueChanged(int)), ui.spinbox, SLOT(setValue(int)));
// SIGNAL To SLOT not called
ui.slider->setValue(2);
// I have to set this also:
ui.spinbox->setValue(2);
}