TechDrawGui::QGCustomImage Class Reference

#include <QGCustomImage.h>

Public Types

enum  { Type = QGraphicsItem::UserType + 201 }
 

Public Member Functions

virtual void centerAt (double cX, double cY)
 
virtual void centerAt (QPointF centerPos)
 
virtual QSize imageSize (void)
 
virtual bool load (QPixmap map)
 
virtual bool load (QString fileSpec)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
 QGCustomImage (void)
 
int type () const override
 
 ~QGCustomImage ()
 

Protected Attributes

QPixmap m_px
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ QGCustomImage()

QGCustomImage::QGCustomImage ( void  )
explicit

◆ ~QGCustomImage()

QGCustomImage::~QGCustomImage ( )

Member Function Documentation

◆ centerAt() [1/2]

void QGCustomImage::centerAt ( double  cX,
double  cY 
)
virtual

◆ centerAt() [2/2]

void QGCustomImage::centerAt ( QPointF  centerPos)
virtual

◆ imageSize()

QSize QGCustomImage::imageSize ( void  )
virtual

◆ load() [1/2]

◆ load() [2/2]

◆ paint()

void QGCustomImage::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget widget = nullptr 
)
overridevirtual

◆ type()

int TechDrawGui::QGCustomImage::type ( ) const
override

Member Data Documentation

◆ m_px

QPixmap TechDrawGui::QGCustomImage::m_px
protected

Referenced by imageSize(), and load().


The documentation for this class was generated from the following files: