[Qt-interest] QWidget and slot setEnabled()

Jean-Olivier Racine joracine at humancad.com
Wed Dec 30 14:33:39 CET 2009


I must admit I had the same thoughts quite a few times. It also applies 
to the setDisabled(bool) method.

Wilhelm wrote:
> Hello,
>
> QWidget has a non-virtual slot setEnabled(bool) to enable/disable the 
> widget and its children. Sadly this is non-virtual and has no default 
> parameter value, so it is unusable e.g. for clicked() signals or QState 
> entered() signals. Is there a reason for this design-decision?
>
> Additionally setting the property "enabled" (e.g. via QState) does not 
> set the children of the widget enabled.
>
>   




More information about the Qt-interest-old mailing list