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. set icon in QSizeGrip
Qt 6.11 is out! See what's new in the release blog

set icon in QSizeGrip

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 1.9k 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.
  • S Offline
    S Offline
    saber
    wrote on last edited by
    #1

    is there in way to add icon in QSizeGrip??

    and any way to rotate the icon??

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      You can style it and use image it seems

      QSizeGrip {
          image: url(:/images/sizegrip.png);
          width: 16px;
          height: 16px;
      }
      
      S 1 Reply Last reply
      2
      • mrjjM mrjj

        Hi
        You can style it and use image it seems

        QSizeGrip {
            image: url(:/images/sizegrip.png);
            width: 16px;
            height: 16px;
        }
        
        S Offline
        S Offline
        saber
        wrote on last edited by
        #3

        @mrjj

        sizeGrip->setStyleSheet("QWidget{background-color: #EFEFEF ; background-image: url(:/icons/anewcorebox.svg);width: 30px; height: 30px; }");
        

        works ,but two icon .

        0_1526631367886_po.png

        mrjjM 1 Reply Last reply
        0
        • S saber

          @mrjj

          sizeGrip->setStyleSheet("QWidget{background-color: #EFEFEF ; background-image: url(:/icons/anewcorebox.svg);width: 30px; height: 30px; }");
          

          works ,but two icon .

          0_1526631367886_po.png

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @saber said in set icon in QSizeGrip:

          background-image:

          hi its not 2 images.
          Using
          background-image will tile the image :)

          S 1 Reply Last reply
          0
          • mrjjM mrjj

            @saber said in set icon in QSizeGrip:

            background-image:

            hi its not 2 images.
            Using
            background-image will tile the image :)

            S Offline
            S Offline
            saber
            wrote on last edited by
            #5

            @mrjj
            how to fix that?

            mrjjM raven-worxR 2 Replies Last reply
            0
            • S saber

              @mrjj
              how to fix that?

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @saber
              Dont use background-image
              but image tag ?

              1 Reply Last reply
              0
              • S saber

                @mrjj
                how to fix that?

                raven-worxR Offline
                raven-worxR Offline
                raven-worx
                Moderators
                wrote on last edited by
                #7

                @saber

                background-repeat: no-repeat
                background-position: center center
                

                See the docs

                --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                If you have a question please use the forum so others can benefit from the solution in the future

                1 Reply Last reply
                2

                • Login

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