replace PyQt4 with PySide
Move emitter creation inside the qt_log_handler