Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Fullscreen child widget

    General and Desktop
    2
    4
    1563
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jarosda last edited by

      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_OBJECT

      public:
      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";
      }
      }
      @

      1 Reply Last reply Reply Quote 0
      • F
        franku last edited by

        Pleas have a look at "this":http://qt-project.org/doc/qt-4.8/qwidget.html#showFullScreen

        This, Jen, is the internet.

        1 Reply Last reply Reply Quote 0
        • J
          jarosda last edited by

          Franku, thanks for responce. I have already seen this docs, but I didn't get any hint from there.

          1 Reply Last reply Reply Quote 0
          • F
            franku last edited by

            Ok - just to be crear: It says that Windows - other than mainwindows - cannot be used in fullscreen mode.

            This, Jen, is the internet.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post