diff --git a/videoview.cpp b/videoview.cpp index c43b99593edc7a7cc50c1f968eb0cf695d0cc1ec..90e6b458020677ac24a0ed40bdc472343f396775 100644 --- a/videoview.cpp +++ b/videoview.cpp @@ -146,8 +146,9 @@ VideoView::toggleFullScreen() { if(isFullScreen()) { this->setParent(oldParent_); - this->showNormal(); + oldParent_->layout()->addWidget(this); this->resize(oldSize_.width(), oldSize_.height()); + this->show(); } else { oldSize_ = this->size(); oldParent_ = static_cast(this->parent());