Hello,
You want to display the content in your main window.
You can use the SIGNAL and SLOT feature of Qt.
1. Connect your SRP_Plot_widget class signal which contains the data you want to display with your mainwindow SLOT.
eg,
// here 'this' pointer is the pointer of mainwindow
QObject::connect(SRP_Plot_Widget_Object,
SIGNAL(customSignal
(QString)),
this,
SLOT(customDisplayData
(QString)));
// here 'this' pointer is the pointer of mainwindow
QObject::connect(SRP_Plot_Widget_Object, SIGNAL(customSignal(QString)), this, SLOT(customDisplayData(QString)));
To copy to clipboard, switch view to plain text mode
2. Just emit a signal from your SRP_Plot_widget class whenever mouse moves or whenever you want to display the changed data.
Bookmarks