Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Pushbutton style sheet not working as expected.
Qt 6.11 is out! See what's new in the release blog

Pushbutton style sheet not working as expected.

Scheduled Pinned Locked Moved Unsolved Qt for Python
1 Posts 2 Posters 512 Views
  • 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.
  • D Offline
    D Offline
    Darcy
    wrote on last edited by Darcy
    #1

    PyQT4

    I completed my UI in designer, and converted it to a .py file using pyside. Everything worked as expected, with the exception of the buttons. Out of 10 buttons, only 3 work as expected. Each button has a style sheet(they all share the same one). The style sheet gives the button a nicer look, but also adds "hover" and "pressed" instructions that you see on just about every button ever made. The problem is, the style sheet is applied (because all buttons have the "nicer look" i mentioned, but only a random 3 will actually change states upon hovering or pressing. It should also be noted that these instructions work perfectly in designers preview.

    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