PDA

View Full Version : Need some advice for design decision



BeS
28th March 2006, 20:58
Hello,
some time ago i have written a Qt3 app. This was one of my first application with more than a few lines of code. Now i want to take the opportunity and rewrite the app with Qt4 so that i can get into Qt4 and hopefully create better code than i did in the Qt3 version.

The crucial part is the "plotter". I have write it with Qt3 from scratch (derived from QWidget, drawing with QPainter). Here is what it does:
- It creates a coordinate system
- axes can be switched between linear, log and log2 scaling
- zoom in/out
- loads some points from a file
- placed them on the coordinate system and connect them (so that i get a curve)
- draw lines between two points
- move the points on the grid so that the data record for the point get new coordinates
- print it

Now the question is how i should do this with Qt4?
Should i do it like i did with Qt3? Should i use the new Arthur framework (are there some examples available)? Or do you know another way?

What would you recommend to archive the best results?

Thanks!

jacek
28th March 2006, 22:05
Have you seen Qwt (http://www.qtcentre.org/index.php?option=com_weblinks&task=view&catid=23&id=19)?

elcuco
28th March 2006, 23:06
there should be great opengl functions on arthur.

most of the things could be done with translations and stuff.