I know how to use QPushButton:hover in the stylesheet for my QMainWindow(). However for only one single button I want to have a different :hover result. Is there a way to use the :hover-function while setting the stylesheet for the specific button?
I tried
self.contact_button = QPushButton(self)
self.contact_button.setText("Contact buyer")
self.contact_button.setStyleSheet(" background-color: #181818; border: 1px solid black; "
":hover: { color: yellow };")
but it doesn't work.