hi, from mainform.cpp I need to do a connetion like this:
connect (button, singnal(my()), ........., SLOT(mySlot()));
where mySlot() is a static SLOT declared in mywidget.h;
what do I put in connect? thanks
hi, from mainform.cpp I need to do a connetion like this:
connect (button, singnal(my()), ........., SLOT(mySlot()));
where mySlot() is a static SLOT declared in mywidget.h;
what do I put in connect? thanks
Regards
There is no such thing as "static slot".
so I can't declare a slot as:
I have some instance of an object but I require only a SLOT...........Qt Code:
public slots: static mySlot();To copy to clipboard, switch view to plain text mode
furthermore (to don't open other post): I have a slider1 connect to a dial and a mySLot().
I need block signal only to mySlot(). possible? thanks
Regards
Yes, you can't.Originally Posted by mickey
Qt allows you only to block all signals at once.Originally Posted by mickey
you can make a wrapper slot that calls the static function..
regards..
aman..
Bookmarks