<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div><span>It is my understanding that the major differences between 4 and 5 are that 5 assumes (and requires) a hardware GL implementation (scenegraph), where 4 does not. In terms of your coding, his largely comes down to the import statements that are used. <br></span></div><div><span><br></span></div><div><span><br></span></div><div><br></div>  <div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> BRM <bm_witness@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> Interests Qt <interest@qt-project.org> <br> <b><span style="font-weight:
 bold;">Sent:</span></b> Monday, March 5, 2012 12:39 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [Interest] To QML or not to QML...<br> </font> </div> <br>
I'm working on an application that presently uses Qt 4.7 for a front-end to a larger system. One of its main tasks is to display data in the system which requires rendering up to around a thousand or so points and overlaying a template of the ideal against the actual. Presently it does all the work in a custom QWidget class and implements the drawing in QWidget::paintEvent(QPaintEvent *event). However, I am getting ready to do a major rewrite of this functionality - namely I want to add some text labels, values, and lines for some of the measurements related to it, and am trying to determine the best possible path of two that are available.<br><br>No matter what I do, there will be some major rework to my application as things are just changing a lot to do the new functionality I am seeking (can't be helped).<br><br>The below are the options I am aware of:<br><br><br>1. Rework the painting to be done to a QImage/QPixMap/etc, and then use QGraphScene to
 display the data, do the overlays, etc.<br>2. Use QML (Qt Quick 1) similar to #1<br>3. Use QML (Qt Quick 1) similar to present operation<br><br>My main requirements are that I need to be able to update at least a few times a second (typically 3-5 times a second; possibly higher), and adding the new text with lines and numbers for the measurements.<br><br><br>As I have not yet touched QML, and there are many on this list who have, what you recommend?<br>Would it be worth trying to do this in QML - either #2 or #3 - or should I just stick to #1?<br><br>For those involved with Qt5, will there likely be big changes in the functionality in moving this to Qt5 when the time comes? I understand (from the development list) that QML1 is generally easy to port to QML2 but that it depends on what you do with QML; am I likely to run into a big issue in the port given what I need to
 do?<br><br>TIA,<br><br>Ben<br>_______________________________________________<br>Interest mailing list<br><a ymailto="mailto:Interest@qt-project.org" href="mailto:Interest@qt-project.org">Interest@qt-project.org</a><br>http://lists.qt-project.org/mailman/listinfo/interest<br><br><br> </div> </div>  </div></body></html>