core & ui_qt: start to use the new event system