ok, i've found solution: connect(_player, &VlcMediaPlayer::end, this, &myprogram::reconnect); connect(_player, &VlcMediaPlayer::error, this, &myprogram::reconnect); void myprogram::reconnect() { if (_player->state() == 6 || _player->state() == 7) // don't know if it really needed or ...