1 Star 5 Fork 3

chen227 / OpenglAndQml

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.cpp 551 Bytes
一键复制 编辑 原始数据 按行查看 历史
chen227 提交于 2018-05-24 13:47 . opengl 上层界面追加
#include <QtGui/QGuiApplication>
#include <QUrl>
#include "mainwindow.h"
#include "upmainwindow.h"
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
//注册opengl到qml
qmlRegisterType<MainWindow>("MainWindow", 1, 0, "MainWindow");
qmlRegisterType<UpMainWindow>("UpMainWindow", 1, 0, "UpMainWindow");
QQuickView view;
view.setSource(QUrl("qrc:/main.qml"));
view.setTitle(QStringLiteral("opengl and qml"));
view.setWidth(800);
view.setHeight(600);
view.show();
return app.exec();
}
1
https://gitee.com/chen227/OpenglAndQml.git
git@gitee.com:chen227/OpenglAndQml.git
chen227
OpenglAndQml
OpenglAndQml
master

搜索帮助