目录
前言:
其实和我接触过的Flutter,有异曲同工之处。
记住F1,其实就ok了。
理论:
案例:
//main.cpp:
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/qt/qml/qtquickapplication1/main.qml")));
if (engine.rootObjects().isEmpty())
return -1;
//main.qml:
import QtQuick 2.9
import QtQuick.Window 2.2
Window {
visible: true
width: 640
height: 480
title: "QtQuickApplication1"
Text:{
text:"demo"
}
}
标签:engine,教程,QtQuick,QT,C++,qml,Quick,import,main
From: https://www.cnblogs.com/zhouyitty/p/17688888.html