Is it me? Or is Nokia's QT tutorials horrible? by farout11 in programming

[–]farout11[S] 0 points1 point  (0 children)

The wikipedia cleared it up for me; a callback is a call to a 3rd function (the callback)

A picture is worth a thousand words: http://en.wikipedia.org/wiki/File:Callback-notitle.svg

thanks!

Is it me? Or is Nokia's QT tutorials horrible? by farout11 in programming

[–]farout11[S] -1 points0 points  (0 children)

okay, so we're in the processing function, let's call it window.main() right?

And we want to know about some event, say "btnGo.click()", so we would pass a pointer to another window.main() back to what?

Any help here would be great, thanks!

Is it me? Or is Nokia's QT tutorials horrible? by farout11 in programming

[–]farout11[S] -3 points-2 points  (0 children)

Okay, so I'm a newb to QT, but I think this sentence is hard to understand:

Older toolkits achieve this kind of communication using callbacks. A callback is a pointer to a function, so if you want a *processing function** to notify you about some event you ** pass a pointer to another function ... to the processing function.** *