Phil Phil - 1 year ago 107
Python Question

Qt on Mac OS X: How to get rid of QListView's blue outline?

I am using a

with custom background image and I want to get rid of the blue outline-border that appears around QListView on OS X.

I tried styling it with:

border: 0 none;
outline: 0 none;
border-collapse: collapse;

But it still appears.

What do I need to do to get rid of this blue hue?

Answer Source

This should work:

yourListView->setAttribute(Qt::WA_MacShowFocusRect, false);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download