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.
try with
ui.setupUi(this);
QString styleSheet = "QLabel{font: bold italic "Arial"; font-size:16}";
ui.centralwidget->setStyleSheet(styleSheet);
and you can also paste QLabel{font: bold italic "Arial"; font-size:16} in qt designer (styleSheet property of main widget) - tested it, works.
Try to use styleSheet as is and if it will work adjust it to you need - then you'll be sure that problem is with approach or with stylesheet itself.
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).
Bookmarks