Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
None
-
5.1.0 , 5.8.0, Some future release
-
None
-
Windows 10 Pro version 1607, Operating system version 14393.1066
User32.dll version 10.0.14393.576
Description
In my environment, Right click is not working at all in all application that use Qt5 libraries since version 5.1.0.
When right clicking on an Qt5 application, the applications do not receive mouse messages from Windows system but keyboard messages.
The problem is not related to Qt5 libraries implementation. I manage to produce an executable that don't use Qt5 librairies but have this problem.
The reason why it impacts all Qt5 applications, is that to obtain the problem i just needed to register a class to receive Windows messages using the class name "Qt5QWindowIcon" (what is done in Qt5 librairies since version 5.1.0).
I joined a zip file with source code and binaries Qt5QWindowIcon_test.exe, Qt5QWindowIcon2_test.exe.
These applications just display a window, and display keyboard and mouse message number in its title.
Qt5QWindowIcon_test.exe application register the class as "Qt5QWindowIcon" and has the problem when I right click on it, it shows message 0x101 (WM_KEYUP)
Qt5QWindowIcon2_test.exe application register the class as "Qt5QWindowIcon2" and do not have the problem when I right click on it, it shows messages 0x204 (WM_RBUTTONDOWN) and then 0x205 (WM_RBUTTONUP )