How can I Overlay Multiple Resizable Sprites in a Qt Designer Interface?
-
Hi everyone,
I'm creating an interface in Qt Designer and I have some sprites that represent different states (for example, the frames of a progress bar going from 0 to 100). I need to insert these sprites into the interface and make sure they automatically adapt to its dimensions. Each sprite occupies a different part of the screen and they need to overlap correctly, as all the sprites must be visible simultaneously. Additionally, it would be useful to use layouts to adapt them to the page.I've tried using page layouts and placing the images in labels, but when I add more than one label, they don't overlap; instead, they align side by side following the set layout. Is there any way to achieve what I need?
Thanks in advance for your help!
-
@Weber01
That's the wrong way of doing it when using QWidgets.
Use animations or active widgets likeQProgressBar.If you are dealing with QML, you can do something like that with Qt Design Studio where are able to have states and use Figma Templates for example.
But don't ask me in this case, I don't use itCheck out this video