Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QQuickView disappearing on fullscreen with QWebEngineView
Qt 6.11 is out! See what's new in the release blog

QQuickView disappearing on fullscreen with QWebEngineView

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 1.1k Views
  • 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.
  • AutomataA Offline
    AutomataA Offline
    Automata
    wrote on last edited by
    #1

    Hello Community,
    Please I have set a centralWidget to the mainwindow of my application, which has a grid layout with a QQuickView embedded as both a side bar and a footer, with a central groupbox containing a QWebEngineView which loads a YouTube video. I have shown my QMainWindow in fullscreen. But doing this makes the sidebar and footer QQuickViews disappear, but toggling with the windows key to go out of fullscreen, makes the side and footer banners appear again. Toggling to full screen mode again makes them disappear, and vice versa.

    Please note that I am using adobe flash plugins to play the videos from YouTube.

    Please any help would be very much appreciated.
    Thanks in advance

    1 Reply Last reply
    0
    • AutomataA Offline
      AutomataA Offline
      Automata
      wrote on last edited by
      #2

      What I discovered is that is happening because I have set the spacing on the layout of QMainWindow to 0, as in

      setCentralWidget(mainDisplay);
      centralWidget()->layout()->setContentsMargins(0,0,0,0);
      centralWidget()->layout()->setSpacing(0);
      

      the line:

      centralWidget()->layout()->setSpacing(0);
      

      is responsible for this strange behaviour. It works fine on showMaximize but not on showFullScreen

      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