Page 1 of 1

Change QLineEdit cursor color

Posted: Wed Sep 15 2021 3:12 pm
by seasoned_geek
All,

According to the doc there is no role for the cursor itself.

https://www.copperspice.com/docs/cs_api/class_qpalette.html#ab86302997ff6fe87cb1c974504b27019

There is QPalette::WindowText and QPalette::Text but not one for just the cursor. Many UI designs today utilize a contrasting cursor so it is easier for the visually challenged. The cursor is a different color than the text.