Imaging Control 4 C++ Library 1.2.0
Loading...
Searching...
No Matches
DisplayWidget Class Reference

A Qt display widget. More...

Inheritance diagram for DisplayWidget:

Public Member Functions

 DisplayWidget (QWidget *parent=nullptr, ::Qt::WindowFlags f=::Qt::WindowFlags())
 Create a new Qt display widget.
 
std::shared_ptr< ic4::DisplayasDisplay ()
 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.