Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Fullscreen child widget
Qt 6.11 is out! See what's new in the release blog

Fullscreen child widget

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.8k Views 1 Watching
  • 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 Offline
    J Offline
    jarosda
    wrote on last edited by
    #1

    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
    0
    • F Offline
      F Offline
      franku
      wrote on last edited by
      #2

      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
      0
      • J Offline
        J Offline
        jarosda
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • F Offline
          F Offline
          franku
          wrote on last edited by
          #4

          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
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved