[Interest] easily prevent ListView from stealing mouse events from QQuickPaintedItem?

VStevenP vstevenpavao at yahoo.com
Wed Feb 11 20:50:59 CET 2015


I have a ListView where the delegate contains an embedded QQuickPaintedItem graph I exposed to QML via qmlRegisterType().  The graph accepts mouse events so that the user can drag vertices on the graph in order to edit the graph.  Unfortunately, the ListView, which is oriented as horizontal,  is not allowing horizontal mouse changes to flow to my graph, which breaks the graphical editing of the graph.
Is there an easy way to allow the mouse events to propagate to my graph.  I've tried playing with z-order but had no luck.  I really need to figure out a way to have my Qt graphs appear in QML flickables and not have their editing broken by mouse event stealing.
I saw an earlier thread on this topic from last November, but it was a slightly different question and I didn't see a clear answer.
- Steve PavaoKorg R&D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150211/20db42ed/attachment.html>


More information about the Interest mailing list