44 if (
mImage.size() != QSize( w, h ) )
46 QgsDebugMsg( QString(
"map paint DIFFERENT SIZE: img %1,%2 item %3,%4" ).arg(
mImage.width() ).arg(
mImage.height() ).arg( w ).arg( h ) );
48 painter->drawImage( QRect( 0, 0, w, h ),
mImage );
A rectangle specified with double values.
virtual QRectF boundingRect() const
default implementation for canvas items
An abstract class for items that can be placed on the map canvas.
Map canvas is a class for displaying all GIS data types on a canvas.
Q_DECL_DEPRECATED QPaintDevice & paintDevice()
virtual void paint(QPainter *painter)
function to be implemented by derived classes
void setContent(const QImage &image, const QgsRectangle &rect)
void setRect(const QgsRectangle &r)
sets canvas item rectangle
QgsMapCanvasMap(QgsMapCanvas *canvas)
constructor