Solved artifacts using QtQuick.Shapes
-
I am building a desktop application using QtQuick 2.15. The circular button patterns above were created with Shape items (QtQuick.Shapes 1.12) which resize with the application window. Artifacts (indicated with red arrows) occur at certain window sizes. I have yet to find a mathematical relationship between the window sizes which show the artifact versus those that do not. The artifacts come and go at various locations as the window is resized. The value of layer.samples for these items doesn't affect the occurrence of the artifacts. Any suggestions on how to eliminate these artifacts will be appreciated.
Thanks
-
I found a solution. If I limit the height of the rectangle which contains the elements to size increments of 100, the artifacts are not present (The items with artifacts are scaled to the height of the rectangle.).
implicitHeight: appWin.height - (appWin.height % 100)
-
I found a solution. If I limit the height of the rectangle which contains the elements to size increments of 100, the artifacts are not present (The items with artifacts are scaled to the height of the rectangle.).
implicitHeight: appWin.height - (appWin.height % 100)