
Originally Posted by
Ahmad
my formating applies only to welcome but i dont know how i can apply the same formatting the strings contained in my two variables surname and name... cause if i put then between " " they will not be considered as variables..
QString("<font color= 'green' size = "15"><b>Welcome %1 %2").
arg(surname
).
arg(name
),
this);
titreLabel = new QLabel(
QString("<font color= 'green' size = "15"><b>Welcome %1 %2").arg(surname).arg(name),
this);
To copy to clipboard, switch view to plain text mode
the second question is that how can i put an image on the background of a widget
Set the image as a brush for the background role of your widget's palette.
Bookmarks