Solved: Maemo 5: Can only draw white text
-
@ QBrush brush; brush.setColor(Qt::red);
QFont font;
font.setPointSize(60);
painter->setBrush(brush);
painter->setFont(font);
painter->drawText(10,130,tr("test"));@This code draws only white text on Maemo and only black text on windows..
How can I cange the text color ? Is setBrush the wrong approach? -
Sorry for the post, I just found out:
@QPen pen; pen.setColor(Qt::black);
painter->setPen(pen);@ -
You can write less code
@
painter->setPen(Qt::black);
@ -
Oh, thank you, thats better :)