Reputation: 1173
I wanted to set background color when text of QTextEdit is selected or found. Can anyone help me?
Upvotes: 1
Views: 1026
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