jett chen
jett chen

Reputation: 1173

how to set QTextEdit color when the text is found or selected?

I wanted to set background color when text of QTextEdit is selected or found. Can anyone help me?

Upvotes: 1

Views: 1026

Answers (1)

Serhiy Kulish
Serhiy Kulish

Reputation: 1122

Looks like you need qss properties selection-color and selection-background-color for your textedit.

selection-color: rgb(170, 255, 0);
selection-background-color: rgb(255, 0, 0);

Upvotes: 2

Related Questions