问题遇到的现象和发生背景
环境 ubuntu14.4 qt5.12.2
问题相关代码,请勿粘贴截图
QQmlApplicationEngine engine;
engine.rootContext()->setContextProperty("viewCtl", new ViewCtl);
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
运行结果及报错内容
QQmlApplicationEngine failed to load component
qrc:/main.qml:1 module "QtQuick" plugin "qtquick2plugin" not found
我的解答思路和尝试过的方法
源代码在windows端运行无问题,在linux端提示如上错误,是否需要对系统进行某些配置