Could you reproduce the problem with the following code?
#include <QtGui>
public:
protected:
qDebug("PRESS");
}
qDebug("RELEASE");
}
};
int main(int argc, char **argv){
Widget w;
w.show();
return app.exec();
}
#include <QtGui>
class Widget : public QWidget {
public:
Widget() : QWidget(){}
protected:
void mousePressEvent(QMouseEvent *me){
qDebug("PRESS");
}
void mouseReleaseEvent(QMouseEvent *me){
qDebug("RELEASE");
}
};
int main(int argc, char **argv){
QApplication app(argc, argv);
Widget w;
w.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks