Hi All,
I am new to this forum and QT, i am in need of setting color for every value which is set as string and stored in array.
I need to set for every line a color so can any one help me please
This is my sample code!!!

void mainwindow::content(QList<QString> placename,QList<QString> address,QList<QString> username,QList<QString> time)
{
QStringList strList;

for(int i=0 ; i<placename.count(); i++)

{

QString name = username[i];
QString place = placename[];
QString profileaddress = address[i];
QString Time = time[i];

strList << name + "\n" + place + "\n" + profileaddress+ "\n" + Time;
}


For Name i need one color,place i need a different color, like that for other too!!
Kindly help me please

Thanks in Advance and Regards,
Naufal.A