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.2ApplicationWindow {
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" }
}
-
Hi,
Check out "flags":http://qt-project.org/doc/qt-5/qml-qtquick-window-window.html#flags-prop and set it to Qt.FramelessWindowHint.