[Qt-interest] QWebView and backspace key
Crni Gorac
cgorac at gmail.com
Tue Feb 8 23:00:07 CET 2011
Working on Qt-based application that is using Qt WebKit window as main
user interface, with some HTML contents downloaded in-there from the
corresponding server, and interaction handled mostly by JavaScript.
This works fine, but I have problem that QWebView is reloading pages
backwards from history when Backspace button pressed. I tried number
of things to stop this behavior: I tried to disable corresponding
pageAction() but that has no effect, I tried with ignoring backspace
key in keyPressEvent() override in my QWebView derived class, but then
backspace is not working on some line edit widgets created by
JavaScript and needed in this particular application. I can see from
QWebPage source code that QWebPage::Back action is triggered on
backspace button deeply in QWebPagePrivate::keyPressEvent(), doesn't
seem to me like that could be changed... So - is there any way to
disable this?
Thanks.
More information about the Qt-interest-old
mailing list