When an entry is selected Qt applies a highlight color on it. You need to alter that as well.
When an entry is selected Qt applies a highlight color on it. You need to alter that as well.
Hi wysota,
Thanks for your response. However can you advise on how this can be achieve in python. Please refer to the code snippet in my original post above.
Rahul
Your original snippet deals with a model while the highlight happens in the view through the delegate. Thus you need to either implement a custom delegate or set the highlight color in your view's palette to transparent.
Hi wysota
Thanks for your response. I am new to PyQt; would it be possible for you to provide a code snippet to do so.
Many Thanks
Rahul
I am new to PyQt too so we're starting from the same point so you can provide that code snippet yourself as well. You have two hints -- custom delegate and changing the widget's palette.
Bookmarks