Answer the question
In order to leave comments, you need to log in
Explain the interaction of windows in QT C++ with an example?
Hello! The task was to program the reception of data in the Com port and write it to a file. And since I'm new. I still don’t understand how to link two windows (everything is clear in one window version), namely, I wanted to display the connection settings in a separate window:
Now there are 2 questions:
1) How to link my mainwindow.cpp and dialogsettingscom.cpp.
2) And where is it more correct to make a connection when clicking "Connect" in dialogsettings.cpp or catch the signal of pressing "Connect" and connect to the com port in mainwindow.cpp.
I still think that it is better to do everything in mainwindow.cpp, but the question arises how to get the settings fields from another window.
Answer the question
In order to leave comments, you need to log in
1) How to link my mainwindow.cpp and dialogsettingscom.cpp.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question