Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved artifacts using QtQuick.Shapes

    QML and Qt Quick
    1
    2
    129
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      ABest2 last edited by

      35aa4c2a-5687-4a57-b9a7-3ed6803c40c9-image.png

      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

      A 1 Reply Last reply Reply Quote 0
      • A
        ABest2 @ABest2 last edited by

        @ABest2

        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)

        1 Reply Last reply Reply Quote 0
        • A
          ABest2 @ABest2 last edited by

          @ABest2

          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)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post