How to make selected/highlighted text area bordered and semitransparent in Qt?

404 Views Asked by At

Highlight and Selction

I am using Qt 5.3 and want to highlight and select the text of QTextEdit like Qt Creator. What I get is just simple highlight with blue background and white color. I am able to change the highlight background and text color with stylesheet and QTextCharFormat. But I can not

  1. Make the highlight area's border radius little bit rounded.(Note in the screenshot)
  2. Draw a border to the selection area.(Note in the screenshot)

In other words I want to format the selection and highlight background area.

0

There are 0 best solutions below