I want to put some text on my UI.
I am drawing the text in a paint event of a widget using painter.
Here is the sample code, which shows how I am drawing the text:
QWidget::paintEvent(painter);
QPainter paint(this);
paint.drawText(QPoint(10,30),"Duplex");
However, the text color looks like the default theme color. How do I set the application font color to the text in a paint event?