RTC Toolkit 6.0.0
Loading...
Searching...
No Matches
gui.taskfeedback.ResizeFilter Class Reference

Filter that monitor resize events from a reference widgets, and apply the same width to the sibling widget. More...

Inheritance diagram for gui.taskfeedback.ResizeFilter:

Public Member Functions

 __init__ (self, QWidget sibling, parent=None)
 A sibling, which is a widget we want to alter its size, needs to be passed as reference.
 
 eventFilter (self, obj, QEvent event)
 This will read Resize Events, and resize the sibling.
 

Protected Attributes

 _sibling = sibling
 

Detailed Description

Filter that monitor resize events from a reference widgets, and apply the same width to the sibling widget.

Constructor & Destructor Documentation

◆ __init__()

gui.taskfeedback.ResizeFilter.__init__ ( self,
QWidget sibling,
parent = None )

A sibling, which is a widget we want to alter its size, needs to be passed as reference.

This Filters is then installed on another widget, the "reference" widget.

Parameters
[in]siblingThe QWidget that will have its size altered
[in]parentThe QObject that is the parent of this object

Member Function Documentation

◆ eventFilter()

gui.taskfeedback.ResizeFilter.eventFilter ( self,
obj,
QEvent event )

This will read Resize Events, and resize the sibling.

These events should come from the "reference" widget.

Parameters
[in]objThe source of the Event
[in]eventThe Event to be filtered.

Member Data Documentation

◆ _sibling

gui.taskfeedback.ResizeFilter._sibling = sibling
protected

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