Dear All!
I am using the following code for changing the Text Pattern;
brush.setStyle(Qt::HorPattern);
brush2.setStyle(Qt::SolidPattern);
textEdit->setPalette(palette);
QPalette palette;
QBrush brush(fg);
QBrush brush1(fg);
brush.setStyle(Qt::HorPattern);
palette.setBrush(QPalette::Active, QPalette::Text, brush);
palette.setBrush(QPalette::Inactive, QPalette::Text, brush1);
QBrush brush2(bg);
brush2.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Base, brush2);
textEdit->setPalette(palette);
To copy to clipboard, switch view to plain text mode
but it is not change its Text Pattern Horizontal. However, I applied this upon Background of the QTextEdit, It applies.
How to get the Horizontal patterns in Text of QTextEdit.
Bookmarks