I would suggest to pass the Serial port pointer to your DialogBox, e.g. in constructor.
Also possible solution is to define SIGNAL and SLOT between your classes. In MW you can define slot sendData() and in DB signal sendData(). Then in MW you can define readyRead() signal and in DB readyRead() slot.




Reply With Quote

Bookmarks