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 to create rounded corners for GIF images.

How to create rounded corners for GIF images.

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 968 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.
  • Q Offline
    Q Offline
    Quella
    wrote on last edited by
    #1

    I want to display a rounded corner GIF image control, what can I do?

    Pl45m4P 1 Reply Last reply
    0
    • Q Quella

      I want to display a rounded corner GIF image control, what can I do?

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @Quella

      Custom QLabel in roundedRect shape playing a QMovie GIF.


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

      ~E. W. Dijkstra

      JoeCFDJ Q 2 Replies Last reply
      0
      • Pl45m4P Pl45m4

        @Quella

        Custom QLabel in roundedRect shape playing a QMovie GIF.

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #3

        @Pl45m4 set background of QLabel transparent? I guess it is hard to set roundedRect to match the image.

        1 Reply Last reply
        0
        • Pl45m4P Pl45m4

          @Quella

          Custom QLabel in roundedRect shape playing a QMovie GIF.

          Q Offline
          Q Offline
          Quella
          wrote on last edited by
          #4

          @Pl45m4 said in How to create rounded corners for GIF images.:

          @Quella
          Custom QLabel in roundedRect shape playing a QMovie GIF.

          I understand that roundedRect can only manipulate one image. If this is correct, do I need to apply roundedRect() to all frames of the GIF image and then assemble them into a new GIF image?

          Pl45m4P 1 Reply Last reply
          0
          • Q Quella

            @Pl45m4 said in How to create rounded corners for GIF images.:

            @Quella
            Custom QLabel in roundedRect shape playing a QMovie GIF.

            I understand that roundedRect can only manipulate one image. If this is correct, do I need to apply roundedRect() to all frames of the GIF image and then assemble them into a new GIF image?

            Pl45m4P Offline
            Pl45m4P Offline
            Pl45m4
            wrote on last edited by
            #5

            @Quella

            Depends on what you want to achieve...
            You can either make your QLabel a roundedRect or you use a GIF with rounded corners.


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

            ~E. W. Dijkstra

            Q 1 Reply Last reply
            0
            • Pl45m4P Pl45m4

              @Quella

              Depends on what you want to achieve...
              You can either make your QLabel a roundedRect or you use a GIF with rounded corners.

              Q Offline
              Q Offline
              Quella
              wrote on last edited by
              #6

              @Pl45m4 Thanks for your reply! I found that if it was a GIF, I would also need to rewrite the paintEvent function to draw each frame in the same way I did earlier.

              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