[Development] QWidget mouse events - different order

Martin Koller kollix at aon.at
Wed Dec 18 16:16:48 CET 2013


I've discovered that with Qt5 I get a different order of mouse events on
a QWidget than with Qt4 (openSuse 13.1 Linux, X11):
double clicking a widget results in Qt4 in:
mousePressEvent 
mouseReleaseEvent 
mouseDoubleClickEvent 
mousePressEvent 
mouseReleaseEvent
but in Qt5 in:
mousePressEvent 
mouseReleaseEvent 
mousePressEvent 
mouseDoubleClickEvent 
mouseReleaseEvent 

I tested with Qt4.8.5 and Qt5.2.
Is this behavioral change intended, undefined, a bug ?
(it results in my app not behaving as before ...)
-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at



More information about the Development mailing list