[port] Port to QtQuick2/Qt5