How to connect signal and slot in two diffrent form ?
-
Hi.
In my first page I want to emit signal that change some thing by slot in second form.
I do like this example : http://stackoverflow.com/questions/6199962/how-to-pass-data-from-one-form-to-another-in-qt
but not worked (maybe because I removed this code from main.cpp : "second.show(); " -> just this change ).
How can I do that? -
Probably it is better for you to start with an implementation and post about more specific issues when you are running into trouble.
There are examples around for interaction between different widgets (e.g. Slider example). That may give you a good start.
Certainly there is also the option to use the example from stackoverflow. However, you need to check if it does already something close to your goals. For issues popping up with your changed code, You should post here the relevant sections.
That will probably give you better chances for an answer you can use. -
Hi,
Here are some examples of signal and slots connected in different forms.
It may help you.
(http://doc.qt.io/qt-5/signalsandslots.html)