The CameraDisplayWidget class A QWidget-derived class that displays camera frames. It allows setting the current frame as a QImage and retrieving the currently displayed frame as a QPixmap.
More...
#include <CameraDisplayWidget.h>
|
| CameraDisplayWidget (QWidget *parent=nullptr) |
| Constructor with optional parent widget.
|
|
| ~CameraDisplayWidget () |
| Destructor. Cleans up the UI resources.
|
|
void | setCurrentFrame (const QImage &image) |
| setCurrentFrame Sets the current frame image to be displayed.
|
|
QPixmap | current_captures () const |
| current_captures Retrieves the currently displayed frame as a QPixmap.
|
|
The CameraDisplayWidget class A QWidget-derived class that displays camera frames. It allows setting the current frame as a QImage and retrieving the currently displayed frame as a QPixmap.
◆ CameraDisplayWidget()
CameraDisplayWidget::CameraDisplayWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Constructor with optional parent widget.
- Parameters
-
parent | The parent QWidget, default is nullptr. |
◆ current_captures()
QPixmap CameraDisplayWidget::current_captures |
( |
| ) |
const |
current_captures Retrieves the currently displayed frame as a QPixmap.
- Returns
- The current frame as QPixmap.
◆ setCurrentFrame()
void CameraDisplayWidget::setCurrentFrame |
( |
const QImage & |
image | ) |
|
setCurrentFrame Sets the current frame image to be displayed.
- Parameters
-
image | The QImage frame to display. |
The documentation for this class was generated from the following files:
- extern_app/GeneralLocalCamera/Ui/CameraDisplayWidget.h
- extern_app/GeneralLocalCamera/Ui/CameraDisplayWidget.cpp