Hi <br><br>I am generating buttons in the form of loop now i want that i dont use external css file and use the property "setStyleSheet" and do the "hover" . So whenever mouse comes over the button the button color should change ,When i try to putt"hover" in setStyleSheet it dont work , can any body tell me how to do that <br>
<br><br><br>buttons[text] = QtGui.QToolButton(widget)<br> buttons[text].setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)<br> buttons[text].setIcon(QtGui.QIcon('default.gif'))<br>
buttons[text].setIconSize(QtCore.QSize(100,100))<br> buttons[text].setText(QtCore.QString(full_name))<br> buttons[text].setStyleSheet("background-color:"+button_colour+";border-radius: 10px;selection-background-color: blue;")<br>
<br>What should i add on this line to achieve hover <br><br><b>buttons[text].setStyleSheet("background-color:"+button_colour+";border-radius:
10px;selection-background-color: blue;")</b><br><br>Its a chunk of code and all variables are alive in my code .<br>