Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QPalette p = ui->textEdit->palette(); // define pallete for textEdit..
- p.setColor(QPalette::Base, Qt::red); // set color "Red" for textedit base
- p.setColor(QPalette::Text, color); // set text color which is selected from color pallete
- ui->textEdit->setPalette(p); // change textedit palette
- share improve this answer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement