hi,
I need to apply frameShadow and framestyle to QLabel in a qss file.How to do that?
Plz help.
Printable View
hi,
I need to apply frameShadow and framestyle to QLabel in a qss file.How to do that?
Plz help.
I'm applying the qss as above u've asked. my problem is that i need to apply frameshadow:Sunken to QLable .
How ll i apply thru qss file.
my code inside qss file is as follows.
QLabel
{
background-color: ash;
color: black;
font-family : MS Sans Serif;
font-size : 8px;
font-weight : normal;
}
Am not sure if this will help -
QLabel{ color: palette(shadow); }
also have a look at frameshadow topic
Looks like you're out of luck in the sense that, by default, according to the docs:
Have you tried using a border? Something like:Quote:
Since 4.3, setting a stylesheet on a QLabel automatically sets the QFrame::frameStyle property to QFrame::StyledPanel.
Or something similar?
aahhhh,,, u posted before me :P
I played with the stylesheet example in the QtDemo and made the following changes in code -
and on running the application, i tried edit, and in the edit made the following change -
Code:
/* Mark mandatory fields with a brownish color. */ .mandatory { color: brown; border-width:2; border-style: inset; }
finally something :)
by the way, Philip, ur questions will make everyone expert in using stylesheets :D
I am neither an expert, I too learn from such postings.
believe me, i didnt knew the answer :D i had to search, glad i learned something new too.