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

QPushButton icon disable pixel algorithm

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 824 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.
  • L Offline
    L Offline
    Leon Zhang
    wrote on last edited by
    #1

    Hello, as title, anybody know the per-pixel color algorithm on icon of a QPushButton when it been set to disable? Thanks.

    artwawA 1 Reply Last reply
    0
    • L Leon Zhang

      Hello, as title, anybody know the per-pixel color algorithm on icon of a QPushButton when it been set to disable? Thanks.

      artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      @Leon-Zhang if you trace it down to the QIcon::paint() method you'll see that it calls QGuiApplicationPrivate::applyQIconStyleHelper() to apply the state. How this method is written internally you'll have to find out yourself, I don't seem to have it.

      For more information please re-read.

      Kind Regards,
      Artur

      L 1 Reply Last reply
      1
      • artwawA artwaw

        @Leon-Zhang if you trace it down to the QIcon::paint() method you'll see that it calls QGuiApplicationPrivate::applyQIconStyleHelper() to apply the state. How this method is written internally you'll have to find out yourself, I don't seem to have it.

        L Offline
        L Offline
        Leon Zhang
        wrote on last edited by
        #3

        @artwaw said in QPushButton icon disable pixel algorithm:

        @Leon-Zhang if you trace it down to the QIcon::paint() method you'll see that it calls QGuiApplicationPrivate::applyQIconStyleHelper() to apply the state. How this method is written internally you'll have to find out yourself, I don't seem to have it.

        @artwaw Could you please tell me where I can find(download or maybe already installed where on disk) Qt source code? Thanks.

        Christian EhrlicherC 1 Reply Last reply
        0
        • L Leon Zhang

          @artwaw said in QPushButton icon disable pixel algorithm:

          @Leon-Zhang if you trace it down to the QIcon::paint() method you'll see that it calls QGuiApplicationPrivate::applyQIconStyleHelper() to apply the state. How this method is written internally you'll have to find out yourself, I don't seem to have it.

          @artwaw Could you please tell me where I can find(download or maybe already installed where on disk) Qt source code? Thanks.

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Leon-Zhang said in QPushButton icon disable pixel algorithm:

          Could you please tell me where I can find

          https://duckduckgo.com/?t=ffsb&q=qt+source+code&ia=web

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1

          • Login

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