Fullscreen child widget
-
Hi guys,
I have problem with fullscreen child widget. The event(doubleClick) on child widget(VideoScene) is reached correctly, but nothing happened after call showFullScreen(). When I call same method on mainWindow widget, it works fine. Could you please write me where could be problem. Implementation of child widget is bellow. Thank you@namespace Ui {
class VideoScene;
}class VideoScene : public QWidget
{
Q_OBJECTpublic:
explicit VideoScene(QWidget *parent = 0);
~VideoScene();private slots:
void on_VideoScene_customContextMenuRequested(const QPoint &pos);
void mouseDoubleClickEvent(QMouseEvent *);private:
Ui::VideoScene *ui;
};
@and implementation for event:
@
void VideoScene::mouseDoubleClickEvent(QMouseEvent *event)
{
if(this->isFullScreen())
{
this->showNormal();
qDebug()<<"Videoscene fullscreen off";
}
else
{
this->showFullScreen();
qDebug()<<"Videoscene fullscreen on";
}
}
@ -
Pleas have a look at "this":http://qt-project.org/doc/qt-4.8/qwidget.html#showFullScreen