use tr function to display text colors.
lineEdit->setText(tr("<font color = red >"+your text+QString("\n")+QString(" </font size = 11 >")));
use tr function to display text colors.
lineEdit->setText(tr("<font color = red >"+your text+QString("\n")+QString(" </font size = 11 >")));
Bookmarks