安装QT
ubuntu安装Qt5.14.2
#添加权限
sudo chmod +x qt-opensource-linux-x64-5.14.2.run
#安装
./qt-opensource-linux-x54-5.14.2.run
下载官方文档
Getting Started Programming with Qt Quick | Qt 5.14
开始项目
将项目文件拷贝到新建项目Alarms中
添加文件:qml.qrc–>/–>右键–>添加文件
编译并运行
运行成功,可得闹钟界面