[Interest] Custom QPushButton
Bernhard Seßler
bernhard.sessler at corscience.de
Fri Nov 22 07:56:58 CET 2013
Hi again,
On 21.11.2013 18:11, Graham Labdon wrote:
> Say I have a push button for which I have set an icon and set the text to an empty string.
> When this is displayed all I see is the Icon, which is what I want.
> However when the button is clicked the rectangular background for the button is displayed in the background color.
> Any idea how I can stop this happening
Set the focus policy for the button to Qt::NoFocus - either by code
(QPushButton::setFocusPolicy()) or in the designer (the focusPolicy property).
>
> Thanks
>
<snip>
Regards,
Bernhard
More information about the Interest
mailing list