PDA

View Full Version : Connect Button to a custom slot



Majestade
28th March 2007, 13:28
hello everyone! i'm trying to connect a button to a custom slot. In qt3 there was a dialog to deal with this, bur in qt4 there isn't!
In the Edit>edit Signals/Slot i only get the base slots...not the ones i created in myObject.h !!!
can someone help?!

jpn
28th March 2007, 13:31
Hi. Unfortunately you can't. See FAQ (http://www.qtcentre.org/forum/faq.php?faq=qt_designer_category).

Majestade
28th March 2007, 18:17
thnks for the link! I found there the solution for this problem!
i used a Dialog with auto-connect:
void on_<widget name>_<signal name>(<signal parameters>);
in my case:
void on_btOpen_clicked();

thanks....and i hope this helps a lot of ppl out there with this same problem;)