Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
None
-
5.0.0
-
None
-
Windows 7 MSVC2010/ Ubuntu11.10
-
3bb902495291c50a2f06e8e03a62a647db3e5cd4 (6.3.2012)
Description
When click on an widget, this widget often can not receive mouse release event.
Following code can be used to reproduce this problem.
#include <QtWidgets/QtWidgets> class Button:public QPushButton { public: explicit Button():QPushButton("Press Me!"){} protected: void mousePressEvent(QMouseEvent *e) { qDebug("press"); QPushButton::mousePressEvent(e); } void mouseReleaseEvent(QMouseEvent *e) { qDebug("release"); QPushButton::mouseReleaseEvent(e); } }; int main(int argc, char *argv[]) { QApplication a(argc, argv); Button btn; btn.show(); return a.exec(); }
The result will be
press release press press release press press release press press release
This problem caused by the way which is used to deal with mouse double click and mouse press.
Attachments
Issue Links
- relates to
-
QTBUG-38242 [REG 5.2.1->5.3] QCheckBox has a dead time after being clicked
- Closed
For Gerrit Dashboard: QTBUG-24649 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
18887,2 | QWidget: fix wrong mouse behavior | master | qt/qtbase | Status: MERGED | +2 | 0 |