How to change hieght of the visible text cursor in QTextEdit?
Unsolved
Qt for Python
-
The standard for rich text applications is to change the size of the visible text cursor for subscript and superscript formats. See a screenshot from Microsoft Word below.
However, the defaultQTextEdit
doesn't do this. Here's a screenshot of this PySide6 example
The size of the text cursor is a visual indicator that subscript/superscript have been enabled or disabled, so this is a UX issue. I can hack the cursor height by changing the font, but this isn't suitable when the
QTextEdit
is writable.There's a
cursorWidth
method forQTextEdit
but I couldn't find a way to change the text cursor's height. Is there a built-in way to do this without writing a custom paint method?