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. Remove the light blue overlay on the icon in QListWidget IconMode.
Qt 6.11 is out! See what's new in the release blog

Remove the light blue overlay on the icon in QListWidget IconMode.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 498 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.
  • W Offline
    W Offline
    wuj10n
    wrote on last edited by wuj10n
    #1

    When a thumbnail item is selected, the thumbnail is covered with a translucent light blue color.
    How to remove the light blue overlay on the selected thumbnail in QListWidget IconMode?

    180adc9f-042a-4fea-866a-867bc2ec1754-image.png

    QListWidget::item{
    color: black;
    }
    QListWidget::item::selected::active{
    color:yellow;
       background-color: transparent;
    }
    QListWidget::item::selected::!active{
    color:yellow;
       background-color: transparent;
    }
    
    JonBJ 1 Reply Last reply
    0
    • W wuj10n

      When a thumbnail item is selected, the thumbnail is covered with a translucent light blue color.
      How to remove the light blue overlay on the selected thumbnail in QListWidget IconMode?

      180adc9f-042a-4fea-866a-867bc2ec1754-image.png

      QListWidget::item{
      color: black;
      }
      QListWidget::item::selected::active{
      color:yellow;
         background-color: transparent;
      }
      QListWidget::item::selected::!active{
      color:yellow;
         background-color: transparent;
      }
      
      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @wuj10n said in Remove the light blue overlay on the icon in QListWidget IconMode.:

      ::selected::active
      ::selected::!active

      Review the syntax of these in List of Pseudo-States. Your syntax is wrong.

      W 1 Reply Last reply
      0
      • JonBJ JonB

        @wuj10n said in Remove the light blue overlay on the icon in QListWidget IconMode.:

        ::selected::active
        ::selected::!active

        Review the syntax of these in List of Pseudo-States. Your syntax is wrong.

        W Offline
        W Offline
        wuj10n
        wrote on last edited by
        #3

        @JonB
        "I modified the code, but the problem remains. The light blue color on the icon still exists when it is selected.".

        QListWidget::item{
        	color: black;
        }
        QListWidget::item:selected:active{
        	color:yellow;
        	background-color: transparent;
        }
        QListWidget::item:selected:!active{
        	color:yellow;
        	background-color: transparent;
        }
        
        1 Reply Last reply
        0
        • C Offline
          C Offline
          CPPUIX
          wrote on last edited by
          #4

          Do you need it to not appear at all? or is it okay for it to appear then get removed?

          Also, how do you select a thumbnail? And what happens when you select a thumbnail?

          Or is this just a gallery, a display or something like that where you don't want anything to happen?

          Mentioning your use case would make it more clear to us, and help us suggest an approach that works for what you're trying to do.

          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