How to share Serial port opened in Main Window class with Dialog box class
In my Qt project I have two C++ classes named "MainWindow" and "DialogBox"
I used serial port class object of QT to open a serial port in MainWindow class and now I want to send and receive data from "DialogBox" class using same serial port opened in MainWindow class.
Please tell me what is correct approach to share same serial port object between MainWindow and DialogBox Class.
Kindly inform me if you need any other information from me.
Thank and Regards
@saurabh162 And this is the third same question: https://forum.qt.io/topic/93202/how-to-share-serial-port-opened-in-main-window-class-with-dialog-box-class
Stop doing that!