<div dir="ltr">"connect" is a C++ function, and like any other function you get to choose when it gets called. But there are some good places in some situations. For instance the example we gave in our sessions. The widget that has a button. You would put the "connect" function in the constructor of the Widget class.<br>
<br>Most probably you already did this and it didn't work. That would be because you called the connect function in a wrong way.<br>It should be like this in the example I gave above<br><br>QObject::connect(pushButton, SLIGNAL(clicked()), this, SLOT(some_func()))<br>
<br>Take care that the signal and slot should have the same number of parameters, and the "()" of the function should be written even if the function has no parameters.<br><br>Regards,<br>Ahmed Toulan.<br><br><div class="gmail_quote">
On Sun, Aug 21, 2011 at 2:37 PM, Islam Hassan <span dir="ltr"><<a href="mailto:iah.vector@gmail.com">iah.vector@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">Can't, the light went out just before saving (Sayevt ya Ali?  Ali ma sayevsh). I'll rewrite it some time later. I just need to know where am I supposed to put the connections, int the header file or the cpp file and should they be put in a specific section like the slots and the signals ??</div>

<br>--<br>
Ubuntu-eg mailing list<br>
<a href="mailto:Ubuntu-eg@lists.ubuntu.com">Ubuntu-eg@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg</a><br>
<br></blockquote></div><br></div>