Connecting signal with multiforms
Hi Friends I am newbie in this form .I have question in qt software development. i want to know how to connect one form to another form on pushbutton clicked with connect signal.
Any example code and snippet will be helpful.
Hi a perfect point to learn is ui forms..
@vivekyuvan I assume you execute the code bellow in one of both forms which has the button you want to connect.
MyForm2 *form2 = new MyForm2(); connect(this, pushButton, SIGNAL(clicked()), form2, SLOT(doSomething()));
You should read http://doc.qt.io/qt-5.9/signalsandslots.html
@jsulm thanks for the reply. I followed your instruction now my problem is solved.