Initialize X with thread-safety when using TaurusApplication.
Sometimes (e.g. running taurusgui example01
) one gets the following:
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has
not been called
[xcb] Aborting, sorry about that.
Fix according to http://stackoverflow.com/a/31967769 , by setting:
Qt.QCoreApplication.setAttribute(Qt.Qt.AA_X11InitThreads)