Its possible to create own events? I want connect to a variable and react on events like a value change event.
i already tried a dpConnectUserData() but changing the unserdata wont trigger the callbackfunction.
I want avoid the "hidden Textfield TextChanged" methode.
qt use signals and slots.. i can use that in ctrl++
ctrl/++ Signals & Slots | events
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: ctrl/++ Signals & Slots | events
The difference between a dpConnect() and dpConnectUserData() is that you can pass additional information to the work function using the "userdata" parameter.
It is not designed to react on changes of the variable where you have stored "userdata".
Best Regards
Leopold Knipp
Senior Support Specialist
It is not designed to react on changes of the variable where you have stored "userdata".
Best Regards
Leopold Knipp
Senior Support Specialist
- kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
Re: ctrl/++ Signals & Slots | events
is there any event driven function i can use?
nevermind i changed my design
nevermind i changed my design
- vogler
- Posts:122
- Joined: Thu Oct 28, 2010 8:32 am
Re: ctrl/++ Signals & Slots | events
maybe uiConnect is useful for you? (think >=v3.15). you can connect to object properties or to "events" and trigger that events with the function triggerEvent() ...