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.
[Code]
import QtQuick 2.0
import QtQuick.Window 2.0Window {
width: 360
height: 360
property string src
Image {
source: src
anchors.fill: parent
}
}[/code]
[code]
comp = new QQmlComponent(e, QUrl("qml/MultiRegionTypePlayer/main.qml"));
p = qobject_cast<QQuickWindow*>(comp->create());
p->setVisible(true);
[/code] -
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)