Dear All!
I am using the following code for changing the Text Pattern;
Qt Code:
  1. QPalette palette;
  2. QBrush brush(fg);
  3. QBrush brush1(fg);
  4. brush.setStyle(Qt::HorPattern);
  5. palette.setBrush(QPalette::Active, QPalette::Text, brush);
  6. palette.setBrush(QPalette::Inactive, QPalette::Text, brush1);
  7. QBrush brush2(bg);
  8. brush2.setStyle(Qt::SolidPattern);
  9. palette.setBrush(QPalette::Active, QPalette::Base, brush2);
  10. 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.