Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Appropriate method of using Qt Style Sheets?

$
0
0
Hi, In my application I want to provide some customisation for the user. I am giving option to change color of some widgets like QLabel, QLineEdit, QGroupBox, QFrame. After searching the Internet I have come to the conclusion that Style Sheets are better than QPalette. So I had a QFrame in my application in which there were other widgets. In Designer module when I changed the background color of the QFrame then it changed that for all its child Widgets. Plus the default way the widgets look in Windows 7, the rounded bevelled corners for Push Button were made into sharp flat corners & it lost the sort of 3D effect of pushing down. So I would like to know the appropriate method of using Style sheets in Designer & also by code. PS: I just want to change the color of my widgets, I dont way to change their “feel”. I hope I could make myself clear… Thank You.

Viewing all articles
Browse latest Browse all 18427

Trending Articles