Fullscreen for video

I have a video output built into the QML view. It works fine, but I want to make this video output in full screen when I click on it.

Each time, some images that are in the view (some sibilizers and some not) are visible on top of my video. In fact, it should fill in the root element and be on the front screen. Changing a property zdoes nothing.

What is the best trick to make a video in full screen? When I switch from normal to full screen, the video should continue to flow without interruption.

A solution only in QML (and not C ++) would be preferable as I build my QML by parsing XML files.

+3
source share
2 answers

I finally found the solution I needed. In fact, it was easier than it seemed. I created an element under the root, and I changed the parent element of my video when I wanted to enter full screen mode. I placed my new Item as the parent of my video item. I did not know that we could change the parent element.

0
source

You can create a new full-screen window from the module QtQuick.Windowand transfer the path to the video image, time and playback to tpo.

Component {
    Window{
        id: videoWindow
        flags: Qt.FramelessWindowHint
        HereYourPlayer{

        }

    }
}

than you have to create it Componentand causevideoWindow.showFullScreen()

+2
source

All Articles