Hello. I have an application in which when changing the position of the QSLider slider from the outside (keyboard, mouse), the slot for rewinding the track should be called. The problem is that when you click on the slider line, the slider moves, but the signal does not respond, but when I click purely on the slider, the signal is triggered.
connect(sldPlaybackProgress, &QSlider::sliderMoved, mediaplayer, &MediaplayerCfg::slot_setPosition ); // Работает // connect(sldPlaybackProgress, &QSlider::sliderReleased, this, &MainWindow::slot_onSliderClicked); // Не работает connect(this, &MainWindow::onSliderClicked /* сигнал исходит из slot_onSliderClicked()*/, mediaplayer, &MediaplayerCfg::slot_setPosition ); connect(sldPlaybackProgress, &QSlider::sliderReleased, this, &MainWindow::slot_onSliderClicked ); // Не работает Tried to use the sliderPressed() signal, but the result is the same.