Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Translucent loading animation on top of certain widget.
QtWS25 Last Chance

Translucent loading animation on top of certain widget.

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.9k Views
  • 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.
  • M Offline
    M Offline
    mstanescu
    wrote on last edited by
    #1

    Hello

    I am researching a way to implement a 50% gray shade on any widget.
    The shading should be somehow dynamic meaning it should be independent of widget size.

    On top of the shade i want to display a loading animation.

    Can someone guide me in the right track on how the shade can be done ?

    Thank you

    1 Reply Last reply
    0
    • L Offline
      L Offline
      loladiro
      wrote on last edited by
      #2

      Do you want to do this without touching the widget, you'd probably have to install an event filter on the paint event and try to add the translucent gray after the widget has been painted.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mstanescu
        wrote on last edited by
        #3

        I found some resources , i will share, i implemented as another widget always on top which takes the shape of my target widget.

        Putting 50% tranlucent background is not hard :) color.setAlpha();

        i still have to give focus to the loading animation and keep it.

        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