Qt application

I'm currently trying to develop a simple prototype plot, and I'm struggling with some kind of white / blank sheet syndrome. I returned to Qt after 2 years, so I feel rather backward.

My application should:

  • display and management of custom data levels
  • plot on custom canvas background
  • manage markers on the chart

My plan is as follows:

  • QGraphicsScene / View / An element as a sprite, for example, control widgets for the background, markers, pointers, and other "bitmap" objects, etc.
  • QPainter / Qpixmap or QPicture for real data layers - and, if possible, set them as QGraphicItem to simplify the management of dynamic graphics

I do not want to use Qwt or a similar library if I cannot draw with it on a custom background (I do not like the look of the qwt graphic style).

Is my plan correct in the use and composition of the qt class? I would like to have at least a clear overview of the classes that should be involved for such a prototype. Thanks in advance. R.

+6
design qt plot graphics pyqt
source share
5 answers

I think you have a basic idea with QGraphicsView. Here are some resources that can help:

Graphical view

Chart <

If you want to use the new animation and state classes:

Stickman

Also, check out the gunnar labs blog . He recently made a series of graphical characteristics.

All this is strictly Qt (animation and a set of states are in 4.6). They are in C ++, but hopefully you can translate what you need for python.

+2
source share

You don’t say much about your project for me to offer a more useful answer, but look at the Qt demos related to the graphical representation, especially with the diagram and 40,000 chips. I think you will find them inspiring for what you want to do.

0
source share

Maybe MathGL is right for you. It has a Qt widget, or you can use the RGBA image directly to combine it with any background in your widget.

0
source share

I recommend you use QCustomPlot, which is a Qt C ++ library. It focuses on creating good-looking 2D graphs of publication quality, graphs and charts, and also has high performance for real-time visualization applications. You can get it here: http://www.qcustomplot.com/

0
source share

You can take a look at the basic plan . Core Plot is OS X specific, but it is built on the OS X Core Animation system, which has many conceptual similarities to the Qt Graphics View Framework. You will have to learn how to visually analyze Objective-C (the process is less than two days for any competent C ++ developer), but you should be able to easily see the general architecture. The Core Plot wiki file has good, high-level documentation that can set you in your path without even looking at the code.

-one
source share

All Articles