With my code when I double click the video it enters fullscreen but seems to open up an entirely new window on my other monitor. When I try to double click the new fullscreen window to exit it doesn't exit but if I go to my other monitor and double click where the videowidget is supposed to be it closes the fullscreen window. How to I fix this?
https://gyazo.com/f56b4e4d00dda722be6beec9bfff7e19 (After FullScreen) Needed to use a Gyazo link because the file size was too large as I am screenshotting both monitors. Code I've Tried->
void MainWindow::keyPressEvent(QKeyEvent *event){
if ((event->key() == Qt::Key_Escape || event->key() == Qt::Key_Back) ) {
if( vw->isFullScreen() != true){
vw->setFullScreen(true);
} else(showNormal());
}}
void MainWindow::mouseDoubleClickEvent(QMouseEvent *event) {
if( vw->isFullScreen() != true){
vw->setFullScreen(true);
} else(vw->setFullScreen(false)); }
void MainWindow::on_fullScreen_clicked(){ if( vw->isFullScreen() != true){
vw->setFullScreen(true); } else(vw->setFullScreen(false));}