Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
icl::qt::ThreadedUpdatableWidget Class Reference

Compability class. More...

#include <ThreadedUpdatableWidget.h>

Inheritance diagram for icl::qt::ThreadedUpdatableWidget:
icl::qt::AbstractPlotWidget icl::qt::ColorLabel icl::qt::CompabilityLabel icl::qt::LowLevelPlotWidget icl::qt::PlotWidget icl::qt::HistogrammWidget

List of all members.

Public Member Functions

 ThreadedUpdatableWidget (QWidget *parent=0)
 Base constructor.
void updateFromOtherThread ()
 call this function to update a widget's UI from an external thread
virtual bool event (QEvent *event)
 automatically called by Qt's event processing mechanism

Detailed Description

Compability class.

This class provides a compability function for asyncronous updating of a QWidget. As QWidget::update() has shown to be not as threadsafe as expected, the new updateFromOtherThread function fixes this problem.

updateFromOtherThread used QApplication::postEvent, to post a UserType QEvent to this object, which is caught in the overloaded event() function


Constructor & Destructor Documentation

Base constructor.


Member Function Documentation

virtual bool icl::qt::ThreadedUpdatableWidget::event ( QEvent *  event) [inline, virtual]

automatically called by Qt's event processing mechanism

call this function to update a widget's UI from an external thread


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines