stdware / qwindowkit

Cross-platform frameless window framework for Qt. Support Windows, macOS, Linux.
Apache License 2.0
490 stars 78 forks source link

QML模式控件位置异常 #42

Open mario-liu opened 6 months ago

mario-liu commented 6 months ago

在QML模式中拖动标题栏会使窗口内的控件错位,应该刚好错位一个标题栏的高度。 另外如果设置qputenv("QSG_RHI_BACKEND", "opengl");的话会使标题栏的y坐标变为负数,也就是在窗口外面。

    Text {
        anchors {
            bottom: parent.bottom
            bottomMargin: 32
            left: parent.left
        }
        font {
            pointSize: 14
            bold: true
        }
        color: "#ECECEC"
        text: 'test'
    }

https://github.com/stdware/qwindowkit/assets/116291671/7982c23a-2446-4719-9d47-54881d12e19b

SineStriker commented 6 months ago

24 与这个issue一致,需要给点时间一个一个修...

mario-liu commented 6 months ago

24 与这个issue一致,需要给点时间一个一个修...

感谢,辛苦!