diff --git a/src/Qt5/imports/FluentUI/Controls/FluClip.qml b/src/Qt5/imports/FluentUI/Controls/FluClip.qml index 18920010..c3c5816f 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluClip.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluClip.qml @@ -1,4 +1,5 @@ import QtQuick 2.15 +import QtQuick.Window 2.15 import QtQuick.Controls 2.15 import QtGraphicalEffects 1.0 import FluentUI 1.0 @@ -7,6 +8,7 @@ FluRectangle { id:control color: "#00000000" layer.enabled: !FluTools.isSoftware() + layer.textureSize: Qt.size(control.width*Math.ceil(Screen.devicePixelRatio),control.height*Math.ceil(Screen.devicePixelRatio)) layer.effect: OpacityMask{ maskSource: FluRectangle{ radius: control.radius diff --git a/src/Qt6/imports/FluentUI/Controls/FluClip.qml b/src/Qt6/imports/FluentUI/Controls/FluClip.qml index 6c2f4bde..8a0a0531 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluClip.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluClip.qml @@ -7,6 +7,7 @@ FluRectangle { id:control color: "#00000000" layer.enabled: !FluTools.isSoftware() + layer.textureSize: Qt.size(control.width*Math.ceil(Screen.devicePixelRatio),control.height*Math.ceil(Screen.devicePixelRatio)) layer.effect: OpacityMask{ maskSource: ShaderEffectSource{ sourceItem: FluRectangle{