Hello,

I'm currently working on a class with QLabel as parent
Qt Code:
  1. class myclass : public QLabel
  2. {
  3. Q_OBJECT
  4. ......
  5. protected:
  6. void mousePressEvent(QMouseEvent* event);
  7. ......
To copy to clipboard, switch view to plain text mode 

with just this as overridden mousepressevent:
Qt Code:
  1. void myclass::mousePressEvent(QMouseEvent* event){
  2. }
To copy to clipboard, switch view to plain text mode 

While debugging, I set a break point on the first line of this function definition. It seems to work but not as expected: It only stops, if my mouse was pressed in the upper left corner of the label(lets say 3 pixels in width 8 pixels in height). I already tried adding text to the label, a pixmap changing different attribubtes that sound like they could have to deal with labelsize... no way...
What am I doing wrong?
Thanks in advance, this drives me crazy.