NDEVR
API Documentation
QTWidgetImage

A Qt compatible wrapper for an image for use with QWidgetModel. More...

Collaboration diagram for QTWidgetImage:
[legend]

Public Member Functions

 QTWidgetImage (QWidget *widget, const String &image_id)
 Constructs a widget image that captures the given widget's appearance.
const StringimageID () const
 Retrieves the image resource identifier.
void updateImage ()
 Updates the captured image from the current widget state.

Protected Attributes

String m_image_id
 The identifier for the image resource.
QPixmap * m_pixmap
 The captured pixmap of the widget.
QWidget * m_widget_to_paint
 The widget being captured.

Detailed Description

A Qt compatible wrapper for an image for use with QWidgetModel.


Definition at line 14 of file QTWidgetModel.h.

Constructor & Destructor Documentation

◆ QTWidgetImage()

QTWidgetImage::QTWidgetImage ( QWidget * widget,
const String & image_id )

Constructs a widget image that captures the given widget's appearance.

Parameters
[in]widgetThe widget to paint from.
[in]image_idThe identifier for the image resource.

Member Function Documentation

◆ imageID()

const String & QTWidgetImage::imageID ( ) const
inline

Retrieves the image resource identifier.

Returns
A reference to the image ID string.

Definition at line 29 of file QTWidgetModel.h.

References m_image_id.


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