Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Guidance Required for Smooth Progress Fill Rendering in Qt (QML + C++)
Qt 6.11 is out! See what's new in the release blog

Guidance Required for Smooth Progress Fill Rendering in Qt (QML + C++)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 208 Views 2 Watching
  • 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.
  • V Offline
    V Offline
    Vishal Biradar
    wrote last edited by Vishal Biradar
    #1

    I am working on a Qt application using QML with a C++ backend and am facing an issue with rendering a fill/progress indicator inside a custom-shaped component.
    Currently, the fill progresses correctly along the shape, but at the transition between the inclined section and the horizontal section, a visible edge/gap is appearing, as shown in the attached image ("Not OK - Implemented"). The expected behavior is a smooth and continuous fill without any noticeable edge, as shown on the right side of the image ("OK - Expected").
    Could you please suggest how this can be achieved in Qt?
    Specifically, I would like to understand:
    What would be the recommended approach in QML/Qt Quick for rendering such a shape with a smooth filling animation?
    Should this be implemented using Canvas, Shape/ShapePath, ShaderEffect, or a custom QQuickPaintedItem/QSGNode in C++?
    How can the fill be clipped or drawn so that the transition between segments remains seamless without visible edges?
    I have attached the reference image for clarity.
    4d6ff516-6186-4d90-8815-b228085f4094-image.png

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved