QPlainTextEdit cursor size / 125% DPI
john at sturtz.org
john at sturtz.org
Sun May 24 15:43:46 BST 2026
Hello again good folks.
I'm fiddling around with a QPlainTextEdit widget and wanting to try manually drawing the text cursor from the .paintEvent() method.
But first, I'd like to make the default cursor disappear. Calling .setCursorWidth(0) works in Windows when Scale is set to either 100% or 200% in the Display Settings. But if Scale is set to 125%, 150% or 175%, the cursor still appears as a thin line. I'm guessing this is because the 0 value is getting rounded to 1?
Wondering if there is any way around this.
Thanks again!
/John
[Short sample script attached]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20260524/06f56123/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: post.py
Type: application/octet-stream
Size: 560 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20260524/06f56123/attachment.obj>
More information about the PyQt
mailing list