/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** BSD License Usage
** Alternatively, you may use this file under the terms of the BSD license
** as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of The Qt Company Ltd nor the names of its
** contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include <QGuiApplication>
#include <QQmlEngine>
#include <QQmlFileSelector>
#include <QQuickView>
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QCoreApplication::setOrganizationName("QtExamples");
QGuiApplication app(argc, argv);
QQuickView view;
view.connect(view.engine(), &QQmlEngine::quit, &app, &QCoreApplication::quit);
view.setSource(QUrl("qrc:/demos/samegame/samegame.qml"));
if (view.status() == QQuickView::Error)
return -1;
view.setResizeMode(QQuickView::SizeRootObjectToView);
view.show();
return app.exec();
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
qt消消乐游戏源码.zip (77个子文件)
samegame
samegame.qml 14KB
content
Settings.qml 3KB
GameArea.qml 8KB
PaintEmitter.qml 5KB
qmldir 411B
Block.qml 4KB
samegame.js 19KB
levels
level5.qml 3KB
level2.qml 3KB
TemplateBase.qml 3KB
level6.qml 3KB
level3.qml 3KB
level7.qml 3KB
level1.qml 3KB
level9.qml 3KB
level0.qml 3KB
level8.qml 3KB
level4.qml 3KB
SmokeText.qml 4KB
Button.qml 3KB
PuzzleBlock.qml 4KB
LogoAnimation.qml 5KB
SamegameText.qml 3KB
gfx
bubble-puzzle.png 3KB
yellow.png 1008B
text-highscore.png 3KB
particle-smoke.png 5KB
but-game-2.png 3KB
particle-brick.png 861B
text-p1.png 2KB
blue.png 1018B
background-puzzle.png 43KB
text-p2-go.png 6KB
icon-fail.png 6KB
logo-a.png 2KB
green.png 1024B
red-puzzle.png 2KB
text-p2-won.png 6KB
but-game-1.png 3KB
logo-e.png 2KB
logo-s.png 2KB
but-game-3.png 1KB
blue-puzzle.png 2KB
background.png 48KB
icon-time.png 1KB
bubble-highscore.png 2KB
text-no-winner.png 6KB
logo-m.png 2KB
bar.png 11KB
text-p2.png 2KB
icon-ok.png 7KB
logo.png 4KB
yellow-puzzle.png 2KB
text-highscore-new.png 7KB
but-quit.png 2KB
green-puzzle.png 2KB
text-p1-go.png 5KB
but-puzzle-next.png 4KB
logo-g.png 2KB
particle-paint.png 714B
but-game-4.png 2KB
red.png 1018B
but-menu.png 2KB
text-p1-won.png 5KB
but-game-new.png 4KB
BlockEmitter.qml 3KB
MenuEmitter.qml 3KB
SimpleBlock.qml 4KB
PrimaryPack.qml 5KB
samegame.qmlproject 309B
doc
src
samegame.qdoc 2KB
images
qtquick-demo-samegame-med-2.png 88KB
qtquick-demo-samegame-med-1.png 66KB
main.cpp 3KB
samegame.pro.user 24KB
samegame.pro 163B
samegame.qrc 3KB
共 77 条
- 1
卷积神经网络
- 粉丝: 337
- 资源: 8460
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 5G网络基础培训课件.zip
- 2024-spring-HIT-CS-大作业
- yolo目标检测项目实验
- downloadFile-1.hc
- C++课程设计:基于Qt的航班信息管理系统
- ADS7822UVerilog驱动,前面传的有点问题
- 基于python的高性能爬虫程序,使用了多线程+缓存+xpath实现的,这里以彼-岸图库为例,实现,仅用于学习交流
- 中分辨率成像光谱仪(MODIS)烧毁面积产品信息MODIS-C6-BA-User-Guide-1.2.pdf
- Screenshot_20240427_172613_com.huawei.browser.jpg
- 关于学习Python的相关资源网站链接及相关介绍.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
前往页