painter.setViewport(m_originX, m_originY, m_sideX, m_sideY);
painter.setWindow(0, 0, m_pixmap.width(), m_pixmap.height());
painter.drawPixmap(0, 0, m_pixmap);
painter.drawLine(centre.x() - 20, centre.y(), centre.x() + 20, centre.y());
painter.drawLine(centre.x(), centre.y() - 20, centre.x(), centre.y() + 20);
painter.drawRect(centre.x(), centre.y(), squareSize, squareSize);
painter.drawEllipse(centre.x(), centre.y(), circleSize, circleSize););
painter.setViewport(m_originX, m_originY, m_sideX, m_sideY);
painter.setWindow(0, 0, m_pixmap.width(), m_pixmap.height());
painter.drawPixmap(0, 0, m_pixmap);
painter.drawLine(centre.x() - 20, centre.y(), centre.x() + 20, centre.y());
painter.drawLine(centre.x(), centre.y() - 20, centre.x(), centre.y() + 20);
painter.drawRect(centre.x(), centre.y(), squareSize, squareSize);
painter.drawEllipse(centre.x(), centre.y(), circleSize, circleSize););
To copy to clipboard, switch view to plain text mode
Bookmarks