- 
    Bug 
- 
    Resolution: Unresolved
- 
    P2: Important 
- 
    None
- 
    5.15, 6.4.2
- 
    None
Whether mimicking MenuBar item, reimplementing PushButton with dropdown, ComboBox, or just opening a context menu from anywhere, you might want to open a modal popup on press, not on click, for a smoother user experience, native desktop feel.
The problem is, QtQuick/TapHandler gets "stuck" if another window is opened & focused during onPressedChanged handling. Moreover, the glitch differs between Qt 5.x and 6.x branches.
In qt5-declarative 5.15.8+kde+r24-1 all subsequent clicks on the same TapHandler are ignored until user clicks somewhere outside of it.
In Qt 6.4.2-1 only the first click is ignored, but the second is registered again, and onPressedChanged gets called too.
The example attached shows three different approaches to open a popup and reproduce the glitch.
- relates to
- 
                    QTBUG-124777 QQuickTapHandler::setPressed() assumes non-null event if not canceled -         
- Closed
 
-