hi all
pls tell me how to draw background color of a label.(ie background color of a label is blue and text of label is white)
thanks with regards:
gauravg
Printable View
hi all
pls tell me how to draw background color of a label.(ie background color of a label is blue and text of label is white)
thanks with regards:
gauravg
Here you go, using QPalette
Code:
//main.cpp #include <QtGui> //QLabel background { public: { setText("QLabel"); setPalette(p); } }; int main(int argc, char *argv[]) { MyWidget w; w.show(); return a.exec(); } #include "main.moc"