@jsulm said in Change font on QTextCursor before start typing any text:
Aren't you changing a copy here?
Yes, but as I understand it, there is no other way to get a QTextCursor other than
QTextCursor DocumentHandler::textCursor() const
{
QTextDocument *doc = textDocument();
if (!doc)
return QTextCursor();
QTextCursor cursor = QTextCursor(doc);
return cursor;
}