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. QLabel pressed stylesheet is ignored
Forum Updated to NodeBB v4.3 + New Features

QLabel pressed stylesheet is ignored

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 467 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.
  • A Offline
    A Offline
    Aario
    wrote on last edited by
    #1

    Hi Folks,
    In below code:

    QLabel#labelTimer00s{
    border-radius: 15px;
    border-width:4px;
    border-color: rgb(170, 170, 170);
    border-style: solid;
    }
    QLabel#labelTimer00s:hover:!pressed {
    border-color: red;
    }
    QLabel#labelTimer00s:hover:pressed {
    color: red;
    }
    

    hovered works. pressed not! Any ideas?
    Thanks in advance.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      I don't see why a QLabel should have a pressed property.

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

      A 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        I don't see why a QLabel should have a pressed property.

        A Offline
        A Offline
        Aario
        wrote on last edited by
        #3

        @Christian-Ehrlicher thanks for the reply. Aside from sarcasm, does that mean it is not supported?

        JKSHJ 1 Reply Last reply
        0
        • A Aario

          @Christian-Ehrlicher thanks for the reply. Aside from sarcasm, does that mean it is not supported?

          JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          Hi, and welcome!

          @Aario said in QLabel pressed stylesheet is ignored:

          does that mean it is not supported?

          :hover is not supported in QLabel: https://doc.qt.io/qt-5/stylesheet-reference.html

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          1
          • M Offline
            M Offline
            mchinand
            wrote on last edited by
            #5
            This post is deleted!
            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