Author: Ricardo Araoz
Posted: 2012-03-30 at 18:49:09
El 30/03/12 19:14, Adrian Klaver escribió:
> On 03/30/2012 03:06 PM, Paul McNett wrote:
>> On 3/30/12 2:26 PM, OKB (not okblacke) wrote:
>>> It seems that the various Dynamic* properties are only updated when
>>> update() is called. I'm not sure exactly when this is. But my question
>>> is, is there any way to get "truly dynamic" (i.e., instant response)
>>> behavior from these properties? What I'd like is, for instance, to have
>>> a button whose DynamicEnabled state depends on values in another
>>> control. I presume I could do this by hooking into various events, but
>>> I'd really like to just have the DynamicEnabled be evaluated as part of
>>> the default handling, so that every change to the form would trigger a
>>> recalculation of Dynamic* properties. Is this possible?
>> I think we should consider redesigning them to do what you suggest.
> Qt's signals and slots mechanism comes to mind.
>
A simple observer pattern.
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/4F764675.2070609@gmail.com