Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to change thickness of letters?
qwe3 last edited by
I would like to have a filled letters and I have it:
But I would like to change thickness ( black border ). I don't want use setStyleSheet ( maybe it is impossible ). How can I change that?
QPainter painter(this); QPainterPath painterPath; painter.setRenderHint(QPainter::Antialiasing); painterPath.addText(100,600,font(),"some text"); painter.fillPath(painterPath, Qt::red); painter.drawPath(painterPath);
I tried with
QFont f = font(); f.setWeight(50);
But with no good result.
VRonin last edited by
But I would like to change thickness ( black border )