there is also another way to do this.. use an external file and put all stylesheet code there..then load that file for loading the stylesheet of WHOLE application all at once..that way ur stylesheet code for pushbutton and other widgets wont be scattered around the whole project..and u wont have to make any changes in the code itself when u want a change to the look of the UI..all u'll have to do is change that external file..u can do it like this:
Qt Code:
application.setStyleSheet(file.readAll());To copy to clipboard, switch view to plain text mode
Bookmarks