i'm developing some small application that uses QWebView to show ui controls on top of my "real" contents. More or less it will be a picture viewer, with loaded picture from device's memory and drawn into backbuffer(QImage). In paint event i'm calling render() method from QWebFrame to draw ui controls on top of currently loaded picture.
What i would like to achieve is to know where an user has just "clicked":
a) on some html control(div) and then call suitable method from(for example exit)
b) outside of any html control (on picture area) and grab mousePress, mouseMove and mouseRelease events (for further processing without using java script)
I managed to find a way to do this by calling base QWebView event handling methods(mouseMoveEvent, mousePressEvent etc) in my app. If QWebView does not handle user action i know that i should process it by myself(and for example change viewport).
My simple solution worked without problems in tp and beta version of qt 4.6. After switching to 4.6 release during changing viewport (case b above = outside any of html controls) my cursor changes in smt very similar to forbidden cursor ( http://qt.nokia.com/doc/4.6-snapshot/qcursor.html ) and my panning does not work at all. It happens in about 50% cases, i can not find any reason for it. What i already know is that, that mousePressEvent() and only the very first mouseMoveEvent() after him is called-nothing else afterwards...
I tried to disable drag&drop feature by setAcceptDrops(false) in my QWebView's constructor but it does not work(cursor still is changing and mouse events are missing, anyway no drag related methods are called then).
By enabling drag&drop by setAcceptDrops(true) i can see that dragEnterEvent() method is called always when i have a changing cursor problem(that is why i think it is smt related to drag&drop).
I also tried to set QApplication::setStartDragDistance() and QApplication::setStartDragDistance() to some big values, but still with no effect...
I'm using symbian 5th edition n97 v1.0 sdk, nokia n97 as a real testing device. On n97 i can not see the forbidden cursor, but mouse events are missing in the same way as using emulator.
Does anyone has any idea what am i doing wrong? Why setAcceptDrops(false) seems not to work here?