[Qt-interest] get rid if focus rect of widgets on mac

Nikos Chantziaras realnc at arcor.de
Mon May 10 21:14:44 CEST 2010


On 05/10/2010 09:57 PM, Andrei Cimpean wrote:
> Hello everybody. I am having some interface problems with a program on macs. Don't know why but it always draws a blue border when a widget gets focus and I have no idea how to get rid of that.
> I searched for fixes using the power of google but kind off failed to achieve something.  I found a few moments ago this post http://stackoverflow.com/questions/1987546/qt4-stylesheets-and-focus-rect but the working tip is unusable ->  ( tree.setAttribute(Qt.WA_MacShowFocusRect, 0) ) and the other suggestion, a long one with delegates seems really dumb and long. Isn't there a simple way to achieve what i'm searching for?

setFrameStyle(QFrame::NoFrame | QFrame::Plain);



More information about the Qt-interest-old mailing list