QApplication::syncX() method has been removed in Qt5