Top "Qpainter" questions

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

"QPainter::drawRects: Painter not active " error C++/QT

I'm a beginner at Qt and c++ and I wanted to see how to use a QPainter and events in …

c++ qt qpainter qevent
How to use a mask with QPainter?

I have a shape (in blue) loaded from a PNG with transparency: Then I'm drawing several circles on top of …

qt mask qpainter
How to rotate text for drawText?

I would like to rotate the text 45 degrees? QFont font; font.setPixelSize(12); //grid for(int i = 0; i < 10; i++){ painter-&…

c++ qt qt4 qt5 qpainter
How to make a QImage or QPixmap semi-transparent - or why is setAlphaChannel obsolete?

4.7 and like to overlay two images on a qgraphicsview. The image on top shall be semi-transparent to allow to see …

qt4 transparency qpainter qimage
How to draw custom shapes in Qt with QPainter or QPainterPath using one shape or a group of shapes joined

How can I draw a shape like a tear? I need to draw without using more than one shape (an …

c++ qt qpainter
Drawing a line on a QWidget

I'm attempting to create a widget that consists of of a single horizontal black line. This widget will be placed …

qt qpainter
How to draw a rectangle and adjust its shape by drag and drop in PyQt5

I'm trying to draw a rectangle on GUI created by PyQt5 by drag and drop. I managed to do that, …

python pyqt pyqt5 qpainter qmouseevent
how to merge two images into one using QImage and QPainter in qt?

Hi I am developing a blackberry10 app. Inside the app I have two images and I just need to merge …

c++ qt qtgui qpainter qimage
Render QWidget in paint() method of QWidgetDelegate for a QListView

i'm having difficulties implementing custom widget rendering in a QListView. I currently have a QListView displaying my custom model called …

qt qwidget qpainter qlistview qstyleditemdelegate
How does Qt draw a border around a rectangle?

I want to know how Qt does a border when using QPainter's drawRect. The reason for this is I am …

qt qpainter