DisplayWidget Class Reference

A Qt display widget. More...

Inheritance diagram for DisplayWidget:

Namespaces

Qt Contains classes for displaying camera images in Qt5 or Qt6 applications.

Public Member Functions

 
DisplayWidget (QWidget *parent=nullptr, ::Qt::WindowFlags f=::Qt::WindowFlags())

Create a new Qt display widget.

std::shared_ptr< ic4::Display
asDisplay ()

Returns a ic4::Display to connect this display widget to a data stream.

Detailed Description

A Qt display widget.

Use asDisplay to get a ic4::Display representing the display. The ic4::Display can then be passed to ic4::Grabber::streamSetup.

Constructor & Destructor Documentation

◆ DisplayWidget()

DisplayWidget ( QWidget *  parent = nullptr,
::Qt::WindowFlags  f = ::Qt::WindowFlags() 
)
inline

Create a new Qt display widget.

Parameters
parentA parent widget
fWindow flags

Member Function Documentation

◆ asDisplay()

std::shared_ptr< ic4::Display > asDisplay ( )
inline

Returns a ic4::Display to connect this display widget to a data stream.

Returns
A shared_ptr to a ic4::Display for this display widget.
Remarks
Pass the return value of this function to ic4::Grabber::streamSetup to display live video on this display widget.