ctrl/++ Signals & Slots | events

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

ctrl/++ Signals & Slots | events

Post by kilianvp »

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++

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: ctrl/++ Signals & Slots | events

Post by leoknipp »

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

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: ctrl/++ Signals & Slots | events

Post by kilianvp »

is there any event driven function i can use?

nevermind i changed my design

vogler
Posts:122
Joined: Thu Oct 28, 2010 8:32 am

Re: ctrl/++ Signals & Slots | events

Post by vogler »

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() ...

4 posts • Page 1 of 1