CCIMXDesktop
 
Loading...
Searching...
No Matches
FixedOptionWidget Class Reference

The FixedOptionWidget class A widget that displays a fixed image option and reacts to user interaction. More...

#include <FixedOptionWidget.h>

Inheritance diagram for FixedOptionWidget:

Public Member Functions

 FixedOptionWidget (QWidget *parent=nullptr)
 Constructs the FixedOptionWidget.
 
void setPixmap (const QPixmap &pixmap)
 Sets the pixmap to be displayed.
 
QPixmap get_pixmap () const
 Retrieves the current displayed pixmap.
 
 ~FixedOptionWidget ()
 Destructor.
 

Detailed Description

The FixedOptionWidget class A widget that displays a fixed image option and reacts to user interaction.

This widget provides a visual option using a pixmap. It may be used as a selectable item within a larger interface, such as a wallpaper or icon chooser.

Constructor & Destructor Documentation

◆ FixedOptionWidget()

FixedOptionWidget::FixedOptionWidget ( QWidget *  parent = nullptr)
explicit

Constructs the FixedOptionWidget.

Parameters
parentOptional parent QWidget.

Member Function Documentation

◆ get_pixmap()

QPixmap FixedOptionWidget::get_pixmap ( ) const

Retrieves the current displayed pixmap.

Returns
The currently set pixmap.

◆ setPixmap()

void FixedOptionWidget::setPixmap ( const QPixmap &  pixmap)

Sets the pixmap to be displayed.

Parameters
pixmapThe image to display.

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