Im trying to add a Minimized button in my app.
For now I've some problem just in Mac Os. I tested in Linux and Win and I don't have problem.
Any ideia?
Rectangle {
property bool containsMouse: titleBar.mouseX >= x + row.x && titleBar.mouseX <= x + row.x + width && titleBar.containsMouse
anchors.top: parent.top
anchors.bottom: parent.bottom
width: height
color: containsMouse ? "#3665B3" : "#000000"
Image {
anchors.centerIn: parent
source: "../images/minimizeIcon.png"
}
MouseArea {
id: minimizeArea
anchors.fill: parent
onClicked: {
// I can see this in Mac Os but don't work
console.log("its work")
appWindow.visibility = Window.Minimized
}
}
}
appWindow is my ApplicationWindow {} // has all my content
There is the link do see the ApplicationWindow: https://github.com/LetheanMovement/lethean-gui/blob/master/main.qml
I tried to use the same code to FullScreen and works well!
appWindow.visibility = Window.FullScreen
The interesting is: If I'm in a FullScreen mode my Windows.Minimized has the same effect as the Windows.Windowed
Im following this Doc: https://doc.qt.io/qt-5/qml-qtquick-window-window.html
Windowitem in your code too. What isappWindowhere? - folibisappWindowsis myApplicationWindows{}. - Laion CamargoApplicationWindowsin the code example? - folibis