Important: Please read the Qt Code of Conduct -

Qt Quick QML Hide Main Window Border

  • Hi everyone, today I have started programming using Qt Quick with QML on Ubuntu. I am enjoying it very much :)

    A question:

    How can I remove/hide the title of the main window along with the "x" close. minimise and maximise buttons?

    The application will be an image player so I won't need the frame around the main window.

    I have created a project by following the following steps:

    file > New File or Project > Applications > Qt Quick Application > Qt Quick Controls 1.2

    And here is my main.qml code:

    import QtQuick 2.3
    import QtQuick.Controls 1.2

    ApplicationWindow {
    visible: true
    width: 800
    height: 480
    opacity: 1
    title: qsTr("Hello World")

    Image {
        id: image1
        x: 0
        y: 0
        width: 800
        height: 480
        source: "image01.png"


  • Moderators


    Check out "flags": and set it to Qt.FramelessWindowHint.

  • Thanks alot, this did the trick.

Log in to reply