I've created a project with the following QML:
main.qml
import QtQuick
import QtQuick.Controls
ApplicationWindow {
id: root
visible: true
width: 800; height: 600
flags: Qt.FramelessWindowHint
Item {
id: myitem //Dummy item as mapToItem requires Item
anchors.fill: parent
Rectangle {
width: 10
height: 10
anchors.right: parent.right
anchors.bottom: parent.bottom
color: "red"
MouseArea {
anchors.fill: parent
onPositionChanged: {
root.width += mapToItem(myitem,mouseX,mouseY).x-myitem.width
root.height += mapToItem(myitem,mouseX,mouseY).y-myitem.height
}
}
}
}
}
I've followed a suggestion found in this post in order to resize a frameless QML window.
If I run the application, you can see that there's a glitch when I try to resize the frameless qt window.
What I'm doing wrong and how can I fix it?

Because the root window is frameless, consider making it transparent as well, e.g.
That way, you only need to resize the
fakewinand not therootwhen dragging yourredgrip. This, should, hopefully, workaround the artifacts you're seeing.