Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.3.0
-
None
Description
When using a tablet on X11, and then leaving the QWidget a mouseMoveEvent is posted even if the mouse is not used.
It would be expected that no mouse events would be posted as long as the mouse is not moved.
Reproducible with the following example:
Use the tablet stylus and move it over the widget. It would be expected that no output was shown.
Instead, when leaving the widget a single line of a mouseEvent is printed.
#include <QtGui>
/**
- Simple app to show effect of using a tablet on the event stream.
- While using a tablet the mouseMove event should never be shown. In 4.2.2 a leaveEvent
- triggered one.
- This was to solved in qt-x11-bleeding of 28-feb
- This is again a problem in qt-x11-bleeding of 27-april
*/
int main (int a, char **c) {
QApplication app(a,c);
QMainWindow mw;
class Widget : public QWidget {
public:
Widget()
void mouseMoveEvent(QMouseEvent *)
{ qDebug() << "mouseMoveEvent"; }void tabletEvent( QTabletEvent *e )
{ e->accept(); }};
mw.setCentralWidget(new Widget());
mw.show();
return app.exec();
}
Note from developer: This does not seem to have ever worked (trying the package from the given date does has the same behavior as later packages). The behavior is also present in 4.2.x Therefore, this is not something holding up the 4.3.0 release and can be fixed in 4.4. Not to mention we need to make sure this behavior is similar on the other platforms, I'm not positive it is at the moment.