seanchas116 / qtimgui

Qt (QOpenGLWidget / QOpenGLWindow) backend for ImGui
MIT License
362 stars 93 forks source link

QT not forwarding "double mouse click" events #34

Closed crolando closed 2 years ago

crolando commented 3 years ago

I'm on windows 10. A lot of the button widgets don't respond to rapid left-clicks.

I found a bug in the event filter that blocks the QEvent::MouseButtonDblClick events from progressing to imgui.

If I add this to the eventFilter switch statement, the double click events are passed to imgui, and the buttons then respond to rapid left clicks.

You can test this by checking the demo "double click" debug field to make sure the events are getting to imgui. See below for source code change location, and test location.

demo_location fix_line

seanchas116 commented 2 years ago

Sorry for late response, fixed in https://github.com/seanchas116/qtimgui/commit/f256242056f54613a5fff07966cecff3c013c58b !