[Qt-interest] missing double click event when using native win32 window
Volker Enderlein
volker.enderlein at ifm.tu-chemnitz.de
Mon Sep 13 11:44:03 CEST 2010
Hi Chris,
On 13/09/2010 11:10, Christopher Lux wrote:
> Hi,
> you can find attached a simple reproduction case for my problem.
>
> I create a custom widget using a native win32 window (simplified for
> the demonstration). The custom widget gets all mouse events except the
> double click event. You can disable the native widget using the macro
> on top of the demo file, then the double click event is fired as
> expected.
>
> I was testing this using Qt 4.7.0b2 and rc1 with Visual Studio 2010
> and 2008 x64 with the same results. When implementing this under X11
> the mouse events fire also as expected, so this might be a Windows
> problem.
>
> I hope this example helps to solve the problem.
>
> Regards
> -chris
>
on a Windows platform you need to set the CS_DBLCLKS style to a window
class to be able to be notfied about double clicks.
HTH, cheers Volker
More information about the Qt-interest-old
mailing list