Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can I Overlay Multiple Resizable Sprites in a Qt Designer Interface?

How can I Overlay Multiple Resizable Sprites in a Qt Designer Interface?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 216 Views 1 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.
  • W Offline
    W Offline
    Weber01
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @Weber01
      That's the wrong way of doing it when using QWidgets.
      Use animations or active widgets like QProgressBar.

      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 it

      Check out this video


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      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