Change QLineEdit cursor color

Discuss anything related to product development
Post Reply
seasoned_geek
Posts: 128
Joined: Thu Jun 11 2020 12:18 pm

Change QLineEdit cursor color

Post 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.

Post Reply