QTextCharFormat textCharFormat = logView->currentCharFormat();textCharFormat.setForeground(Qt::darkGreen);logView->setCurrentCharFormat(textCharFormat);