Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Get current theme highligth colour



  • Hello, everyone!

    Is there anyway to get the current theme colour for the highlight property on a ListView item? What I want to do is to set the colour to match to current theme's instead of hardcoding this value, since it looks like there is no way to fix the highlight on the selected item. Every solution I've seen so far creates a Rectangle or changes the text colour with a custom value. Using the one from current theme would avoid having to change it on every theme available for the application.

    Thank you in advance!


Log in to reply