[Interest] Migration path from QGraphicsScene to QtQuick2

Nuno Santos nunosantos at imaginando.pt
Fri Apr 15 12:15:36 CEST 2016


I think you can extend QQuickItem and override the paint method and keep using the exact same code for painting your items.


> On 15 Apr 2016, at 11:05, Jean-Michaël Celerier <jeanmichael.celerier at gmail.com> wrote:
> Inspired by Ingo Schiller's problem, I am wondering if there is a "common" or known pattern to enable migration from QPainter / QGraphicsItem objects to QtQuick 2 ?
> I have a big scene with items all drawn by hand : https://github.com/OSSIA/i-score/blob/master/Documentation/iscore.png?raw=true <https://github.com/OSSIA/i-score/blob/master/Documentation/iscore.png?raw=true>
> Should I reimplement QSGNode or stuff like this ? Will I have better performance ? Are all nifty features (rubber band, contxt menu, etc...) supported in QtQuick or does stuff need redoing ?
> Best,
> Jean-Michaël Celerier
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160415/d4b08266/attachment.html>

More information about the Interest mailing list