Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
654 views
in Technique[技术] by (71.8m points)

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

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.

question from:https://stackoverflow.com/questions/65917870/how-to-make-selected-highlighted-text-area-bordered-and-semitransparent-in-qt

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...