Openark installation tutorial

2022-12-28   ES  

	#include <QPainter>
	QPainter painter(this);

    painter.drawEllipse(QPoint(200,200),50,50);
    painter.setRenderHint(QPainter::Antialiasing);          // Anti -aliasing
    painter.drawEllipse(QPoint(400,200),50,50);

    painter.drawRect(QRect(20,20,50,50));
    painter.translate(100,0);           // Mobile origin
    painter.save();                         // Place the movement of the movement to the original point
    painter.drawRect(QRect(20,20,50,50));
    painter.translate(100,0);
    painter.restore();                      // Restore Save origin position
    painter.drawRect(QRect(20,20,50,50));

    QPixmap pixmap;
    pixmap.load(":/prefix1/image/7.png");
    painter.drawPixmap(x,y,pixmap);

source

Related Posts

SpringBoot @Onetoone solves the two -way dead cycle of JPA/Return to JSON data dead loop

Package keyword analysis

1 1 1 1 1 1

Based on PostgreSQL and Postgis, Mars coordinate system, Baidu coordinate system, WGS84 coordinate system, CGCS2000 coordinate system

Openark installation tutorial

Random Posts

Python realizes Apple (recursion)

MAC system Install XGBOOST

spring cloud netflix service found: Eureka (1) register and run WYX

linux GDB tool Kamu

js Local cache three ways JS local cache