Thanks for the reply! 
I think I will go with the sub-classing option because with event filtering, if I click on the QLabel, the coordinates will be relative to the entire main window, right? (not to the size of the QLabel)
My real question is how do I subclass when the QLabel declaration is inside the header created by Qt Designer?
In the UI file created with Designer, the QLabel object I want to modify is a public member of Ui_MainWindow:
class Ui_MainWindow
{
public:
//
//
//
}
class Ui_MainWindow
{
public:
//
QLabel *tracking_frame;
//
//
}
To copy to clipboard, switch view to plain text mode
So my question is, how do I overwrite the mousePressEvent protected member?
As in, what code do I insert into MainWindow.h? (or do I have to create a new header and source file to do this?)
I tried just adding this above the MainWin class declaration in MainWindow.h:
class tracking_frame
: public QLabel,
private Ui
::MainWindow::tracking_frame{
protected:
};
class tracking_frame : public QLabel, private Ui::MainWindow::tracking_frame
{
protected:
void mousePressEvent(QMouseEvent *event);
};
To copy to clipboard, switch view to plain text mode
But this doesn't work...
Thanks so much!
Bookmarks