Undecorated Window

  • Hi

    Im wondering how i can create an undecorated window. I want do disable the outside borders and status bar.
    Any Idea? QtQuick.Window does not seem to have such a feature and i was not able to add Qt::FramelessWindowHint.

    Im using QQmlComponent becaus it works so far. Im using Window{} in qml because nothing will be shown if i dont.

    import QtQuick 2.0
    import QtQuick.Window 2.0

    Window {
    width: 360
    height: 360
    property string src
    Image {
    source: src
    anchors.fill: parent


    comp = new QQmlComponent(e, QUrl("qml/MultiRegionTypePlayer/main.qml"));
    p = qobject_cast<QQuickWindow*>(comp->create());

  • Hi,
    I know a way to do so from both QML and C++

    Window {
        width: 800
        height: 600
        flags: Qt.FramelessWindowHint // This is the part which makes your window undecorated
        minimumWidth: 800
        minimumHeight: 600
        visible: true

    In C++ code you would use setFlags function.

    Hope this helps)

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.