pyqtgraph and Qt Quick 2.x (OpenGL only)

125 views
Skip to first unread message

Russell Warren

unread,
Jun 10, 2015, 6:26:57 PM6/10/15
to pyqt...@googlegroups.com
Has anybody tried getting pyqtgraph working in a Qt Quick 2.x application?

With Qt Quick 2 being OpenGL and scenegraph only (no QGraphicsView) I figured pyqtgraph was pretty much a non-option.  However, I've just seen that there is a QPainter API available:


This makes me think it may be feasible with a bit of elbow grease.  That API draws indirectly and seems like it needs to upload the full image to the GPU on every update, so I don't know how fast that would be.  I also certainly don't know enough about OpenGL to know where all of the rendering happens in the first place, or what gets shipped where, how, and with what bandwidth... but it looks promising, anyway!  Maybe it makes more sense to wait for Vispy to be usable and try and pipe that to Qt's OpenGL context somehow?

There's obviously a heck of a lot more to pyqtgraph than the graphics rendering (I recall that the mouse interaction code is pretty beefy), but has anybody tinkered with this yet?

With Qt Quick Components [1] getting better over time (5.5 even has a treeview coming [2]), I'm definitely curious to start working in QML.

Russ

Jonathan Hodges

unread,
Nov 4, 2016, 9:07:20 PM11/4/16
to pyqtgraph
Did you ever get anywhere with this approach?

Luke Campagnola

unread,
Nov 4, 2016, 10:51:51 PM11/4/16
to pyqt...@googlegroups.com
I'm really interested to see if we can make this work as well.
QDeclarativeView inherits from QGraphicsView, so it seems like it should be straightforward. 
Likewise, QDeclarativeItem inherits from QGraphicsObject (like all of pyqtgraph's items). 


--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/9c3a0111-6c26-4940-8e37-dc61a3314c64%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages