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. Stylesheet font-size not working with hover
Forum Updated to NodeBB v4.3 + New Features

Stylesheet font-size not working with hover

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 5.1k 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.
  • G Offline
    G Offline
    goocreations
    wrote on last edited by
    #1

    Hi, I have a simple problem when applying the following to QPushButton:

    @QPushButton{
    font: 18px;
    }

    QPushButton:hover{
    font: 32px;
    }@

    When my mouse moves over the button, everything inside the hover part of the style sheet is executed, except the font size. Hence, when my mouse moves over the button, the font size doesn't change as it is suppose to.

    Any suggestions?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      loladiro
      wrote on last edited by
      #2

      Try font-size instead.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goocreations
        wrote on last edited by
        #3

        font-size also doesn't work. But I've now created a subclass of QPushButton were I hardcoded the change of the stylesheet in the enterEvent(). That works, the effort is just a little more.

        But thanks anyway

        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