Top "Qpainter" questions

QPainter is a Qt class that provides low-level painting on widgets or other paint devices.

How to draw a linear gradient arc with Qt QPainter?

I'm trying to develop a custom QProgressBar that will look like the following image : I created a class that extends …

qt linear-gradients qpainter
Use window/viewport to flip QPainter y-axis

I'm using Qt 4.7 QPainter to draw some polygons, etc into a widget. I am hoping to alter the coordinate system …

qt graphics qt4 coordinates qpainter
How to draw an arc with Qt?

Consider the following diagram: I have information about the center point of both the lines, the angle in between, and …

qt qpainter qtgui qrect
Using QPainter over OpenGL in QGLWidget when using shaders

Many of you Qt (4.6 specifically) users will be familiar with the Overpainting example supplied in the OpenGL tutorials, I'm trying …

qt opengl overlay shader qpainter
Draw rich text with QPainter

is there a way to draw fixed text that has subscripts. My goal is to have something like: "K_max=…

qt qstring qpainter
How to draw a line with animation in PyQt4

I have a list of points. For example, points = [[160, 75], [115, 567]]. How to draw a line in PyQt4, so it would be …

python drawing pyqt pyqt4 qpainter
How to draw a QPixmap with transparency

I've got a QPixmap and I would like to draw it on a QWidget. However, I would like to make …

qt transparent qpainter qpixmap
How to get the sizes of the rendered text on a QPainter?

I draw in my Qt program on a QPainter the text and various elements round it. I need to get …

c++ qt qpainter