Image Component Library (ICL)
|
Compability class. More...
#include <ThreadedUpdatableWidget.h>
Public Member Functions | |
ThreadedUpdatableWidget (QWidget *parent=0) | |
Base constructor. More... | |
void | updateFromOtherThread () |
call this function to update a widget's UI from an external thread More... | |
virtual bool | event (QEvent *event) |
automatically called by Qt's event processing mechanism More... | |
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
|
inline |
Base constructor.
|
inlinevirtual |
automatically called by Qt's event processing mechanism
|
inline |
call this function to update a widget's UI from an external thread
new, if this is called from the GUI thread, setValue is called directly without using Qt's signal mechanism