void functionName()
{
connect(videoPlayerControls->playPauseButton,SIGNAL(clicked()),videoDisplayer,SLOT(playVideo()));
connect(videoPlayerControls->playPauseButton,SIGNAL(clicked()),this,SLOT(editButtonView()));
connect(videoPlayerControls->processButton,SIGNAL(clicked()),this,SLOT(processVideo()));
}
void VideoPlayer::processVideo()
{
disconnect(videoPlayerControls->playPauseButton,SIGNAL(clicked()),videoDisplayer,SLOT(playVideo())); //disconect called here as I have to use the slot play processed video here instead of play video
connect(videoPlayerControls->playPauseButton,SIGNAL(clicked()),videoDisplayer,SLOT(playProcessedVideo()));
}
void functionName()
{
connect(videoPlayerControls->playPauseButton,SIGNAL(clicked()),videoDisplayer,SLOT(playVideo()));
connect(videoPlayerControls->playPauseButton,SIGNAL(clicked()),this,SLOT(editButtonView()));
connect(videoPlayerControls->processButton,SIGNAL(clicked()),this,SLOT(processVideo()));
}
void VideoPlayer::processVideo()
{
disconnect(videoPlayerControls->playPauseButton,SIGNAL(clicked()),videoDisplayer,SLOT(playVideo())); //disconect called here as I have to use the slot play processed video here instead of play video
connect(videoPlayerControls->playPauseButton,SIGNAL(clicked()),videoDisplayer,SLOT(playProcessedVideo()));
}
To copy to clipboard, switch view to plain text mode
Here I have 2 cases:
Bookmarks