QgsPreviewEffect class

A graphics effect which can be applied to a widget to simulate various printing and color blindness modes.

Contents

Public functions

auto mode() const -> PreviewMode
Returns the mode used for the preview effect.
void setMode(PreviewMode mode)
Sets the mode for the preview effect, which controls how the effect modifies a widgets appearance.

Function documentation

PreviewMode QgsPreviewEffect::mode() const

Returns the mode used for the preview effect.

Returns PreviewMode currently used by the effect

void QgsPreviewEffect::setMode(PreviewMode mode)

Sets the mode for the preview effect, which controls how the effect modifies a widgets appearance.

Parameters
mode PreviewMode to use to draw the widget