How in QTextEdit to make your color for each line? That is, not the entire widget, but specifically for the string. For example, I want green. I do this:
ui->textEdit->SetStyleSheet("Тут задаем цвет"); ... but the color changes for the entire widget at once and all the lines in it. And I need only ui->textEdit->append("Строка") be green, and everything after it - in standard black.