PDA

View Full Version : is QWidget::setAttribute thread-safe?



waiter
1st April 2014, 07:53
hello,
is QWidget::setAttribute thread-safe? anybody know that?

anda_skoa
1st April 2014, 08:53
Since a widget is a GUI resource it can only be used by the main thread.
Thus the question of thread-safety is irrelevant, since it will only ever accessed by one thread: the main thread.

Cheers,
_