PDA

View Full Version : Using Qt to display data with fancy graphics?



kachofool
7th July 2010, 05:08
Hey all,

I'm looking at creating an app to display highly stylized visual representations of time-varying data. Examples might be a tachometer for speed or a scale for force or whatever. So I can create the images that I want to use to display my data, but I don't really know how to incorporate this sort of thing using the Qt framework. I'm used to using the standard UI elements and widgets that the library offers to display stuff but this is really different since I'm controlling basically everything I want to be displayed. Could anyone point me in the right direction? I know there's Graphics View and I've also seen some of the new animation stuff (Qt Kinetic and QML and all that)... but I don't really know what I should be starting with. I'd appreciate any advice.

Regards,

kif

SixDegrees
7th July 2010, 11:27
Start with QWidget. Add slots that allow the data being displayed to be changed. Override the paintEvent() method to render your widget however you see fit.

There are many examples and tutorials scattered throughout the Qt package.