Hello,
I'm currently working on a class with QLabel as parent
{
Q_OBJECT
......
protected:
......
class myclass : public QLabel
{
Q_OBJECT
......
protected:
void mousePressEvent(QMouseEvent* event);
......
To copy to clipboard, switch view to plain text mode
with just this as overridden mousepressevent:
}
void myclass::mousePressEvent(QMouseEvent* event){
}
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.
Bookmarks