So maybe qss file overrides stylesheets used in code.
try different variations of qss file
i.e:
font : Arial
font-size: 12px
Maybe it's just a matter of invalid
font : Arial 12x;
entry is stylesheet that is applied after other.
So maybe qss file overrides stylesheets used in code.
try different variations of qss file
i.e:
font : Arial
font-size: 12px
Maybe it's just a matter of invalid
font : Arial 12x;
entry is stylesheet that is applied after other.
See GrEEn (Graphics Effects Environment)
http://sourceforge.net/project/platf...roup_id=232746
a qt-based plugins oriented MDI image processing application(contains also qt plugins like styles & imageformats).
try it:
in .qss:
Qt Code:
font-family: Verdana; font-size: 16px; }To copy to clipboard, switch view to plain text mode
and in your code insert this:
Qt Code:
your_label->setStyleSheet( "font-family: Arial; font-size : 12px;");To copy to clipboard, switch view to plain text mode
Hi All
Now the font is changed. I did like below
ui.m_label->setStyleSheet("QLabel#m_label1 {background-color: white;"
"color : black; border: 2px solid black;"
"font:Arial ; font-size: 20px}");
But the problem is that two images are coming. one in default font and another in Arial font. So the text is not visible properly. What ll i do to solve this?
Cheers,
Phillip
--- Please post the solution you got to solve your problem. It may help others.
Bookmarks