callback/callback-qt — Issue #6: Long-press menu
Author: jareware
Created: 2012-01-15 19:56:09+00:00
State: open

When deploying the default project to a Symbian device (I'm testing with Anna, Qt 4.7.4) and touching and holding for >= 1 second, the webview opens a context menu with the Refresh-option. This is often very undesirable.

What's worse, if a touch-event opens a dialog (such as a confirmation one), after closing the dialog the event is interpreted as a long press, and the context menu opens by itself.

The Qt Creator's "HTML5 Application" template has an option called "Enable touch optimized navigation" that works around the issue; please find a relevant commit here:

https://www.qt.gitorious.org/qt-creator/qt-creator/commit/dece4dccc7954f36c6b44646744e22b3f8c7c73c/diffs

The handling of `QEvent::ContextMenu` might be something to look at, but to be honest I'm rather useless with Qt.

P.S. Thanks for your good work, the Qt port is awesome!

- Jarno