Getting mouse click location of a label in qt
I googled around and found this forum thread in which the OP seems to have had the exact problem I am having. The question is, how would I inherit from QLabel and reimplement the mousepressed event? I'm guessing it would be something like this: class CustomLabel : public QLabel { public: //what about the constructors? void mousePressEvent ( QMouseEvent * ev ); } void CustomLabel::mousePressEvent ( QMouseEvent * ev ) { QPoint = ev->pos(); //I want to have another function get the event position. //How would I achieve this? It's void! //Is there perhaps some way to set up a signal and slot with