I'd want to write something like this
connect (a,signal(a),this, convert_to_slot(my_function))
Fiction science ?
Thanks
I'd want to write something like this
connect (a,signal(a),this, convert_to_slot(my_function))
Fiction science ?
Thanks
Why not declare my_function as a slot? You can still call it in a normal way.
Or, if the function is not your code, create your own slot, connect the signal to that slot, and within that slot call the function.
Qt Code:
//slot definition void THIS_CLASS::my_slot(...) { my_function(...); //call my_function } //connection connect (a,signal(...),this, my_slot(...))To copy to clipboard, switch view to plain text mode
tonnot (19th April 2011)
Bookmarks