[Qt-interest] QWidget and slot setEnabled()

Wilhelm wilhelm.meier at fh-kl.de
Mon Dec 28 05:55:02 CET 2009


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.

-- 
Wilhelm




More information about the Qt-interest-old mailing list