3

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.

1
  • 1
    about question 1 and 2 i think you must paint the highlighter manuali with QPainter .this topic is your answer about text back color .--stackoverflow.com/questions/14310154/… Commented Jan 27, 2021 at 13:23

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.