how about looking into the qt documentation, or searching the forums first ???
you would have found a solution within minutes...
setting color:
m_textEdit->setTextColor(Qt::red);
m_textEdit->setTextColor(Qt::red);
To copy to clipboard, switch view to plain text mode
setting background
m_textEdit->setPalette(palette);
QPalette palette;
palette.setColor(QPalette::Base, QColor(0, 0, 255, 255));
m_textEdit->setPalette(palette);
To copy to clipboard, switch view to plain text mode
monospaced text
m_textInput
->setFont
(QFont("Courier",
10));
m_textInput->setFont(QFont("Courier", 10));
To copy to clipboard, switch view to plain text mode
regards
Bookmarks