thanks, using this now

if (QFileInfo(name).suffix() == "001")
opt.palette.setColor(QPalette::Text,QColor(0, 0, 255, 255) );

and it works