Skip to content

Commit bc58319

Browse files
committed
First commit
0 parents  commit bc58319

File tree

11 files changed

+160
-0
lines changed

11 files changed

+160
-0
lines changed

.gitignore

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# This file is used to ignore files which are generated
2+
# ----------------------------------------------------------------------------
3+
4+
*~
5+
*.autosave
6+
*.a
7+
*.core
8+
*.moc
9+
*.o
10+
*.obj
11+
*.orig
12+
*.rej
13+
*.so
14+
*.so.*
15+
*_pch.h.cpp
16+
*_resource.rc
17+
*.qm
18+
.#*
19+
*.*#
20+
core
21+
!core/
22+
tags
23+
.DS_Store
24+
.directory
25+
*.debug
26+
Makefile*
27+
*.prl
28+
*.app
29+
moc_*.cpp
30+
ui_*.h
31+
qrc_*.cpp
32+
Thumbs.db
33+
*.res
34+
*.rc
35+
/.qmake.cache
36+
/.qmake.stash
37+
38+
# qtcreator generated files
39+
*.pro.user*
40+
41+
# xemacs temporary files
42+
*.flc
43+
44+
# Vim temporary files
45+
.*.swp
46+
47+
# Visual Studio generated files
48+
*.ib_pdb_index
49+
*.idb
50+
*.ilk
51+
*.pdb
52+
*.sln
53+
*.suo
54+
*.vcproj
55+
*vcproj.*.*.user
56+
*.ncb
57+
*.sdf
58+
*.opensdf
59+
*.vcxproj
60+
*vcxproj.*
61+
62+
# MinGW generated files
63+
*.Debug
64+
*.Release
65+
66+
# Python byte code
67+
*.pyc
68+
69+
# Binaries
70+
# --------
71+
*.dll
72+
*.exe
73+

Lab.pro

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
QT += quick
2+
3+
CONFIG += c++11
4+
5+
# The following define makes your compiler emit warnings if you use
6+
# any Qt feature that has been marked deprecated (the exact warnings
7+
# depend on your compiler). Refer to the documentation for the
8+
# deprecated API to know how to port your code away from it.
9+
DEFINES += QT_DEPRECATED_WARNINGS
10+
11+
# You can also make your code fail to compile if it uses deprecated APIs.
12+
# In order to do so, uncomment the following line.
13+
# You can also select to disable deprecated APIs only up to a certain version of Qt.
14+
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
15+
16+
SOURCES += \
17+
main.cpp
18+
19+
RESOURCES += qml.qrc
20+
21+
TRANSLATIONS += \
22+
Lab_ru_RU.ts
23+
24+
# Additional import path used to resolve QML modules in Qt Creator's code model
25+
QML_IMPORT_PATH =
26+
27+
# Additional import path used to resolve QML modules just for Qt Quick Designer
28+
QML_DESIGNER_IMPORT_PATH =
29+
30+
# Default rules for deployment.
31+
qnx: target.path = /tmp/$${TARGET}/bin
32+
else: unix:!android: target.path = /opt/$${TARGET}/bin
33+
!isEmpty(target.path): INSTALLS += target

Lab_ru_RU.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE TS>
3+
<TS version="2.1" language="Lab_ru_RU"></TS>

main.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#include <QGuiApplication>
2+
#include <QQmlApplicationEngine>
3+
4+
int main(int argc, char *argv[])
5+
{
6+
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
7+
8+
QGuiApplication app(argc, argv);
9+
10+
QQmlApplicationEngine engine;
11+
const QUrl url(QStringLiteral("qrc:/main.qml"));
12+
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
13+
&app, [url](QObject *obj, const QUrl &objUrl) {
14+
if (!obj && url == objUrl)
15+
QCoreApplication::exit(-1);
16+
}, Qt::QueuedConnection);
17+
engine.load(url);
18+
19+
return app.exec();
20+
}

main.qml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import QtQuick 2.12
2+
import QtQuick.Window 2.12
3+
4+
Window {
5+
visible: true
6+
width: Screen.width
7+
height: Screen.height
8+
title: qsTr("Hello World")
9+
10+
Rectangle {
11+
anchors.centerIn: parent
12+
color: "red"
13+
width: parent.width/2
14+
height: width
15+
}
16+
}

qml-other/begin-menu/BeginMenu.qml

Whitespace-only changes.

qml-other/lol.qml

Whitespace-only changes.

qml-other/panels/PersonPanel.qml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import QtQuick 2.12
2+
3+
Item {
4+
5+
}

qml-other/panels/ToDoPanel.qml

Whitespace-only changes.

qml.qrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<RCC>
2+
<qresource prefix="/">
3+
<file>main.qml</file>
4+
<file>qml-other/lol.qml</file>
5+
<file>resources/null.jpg</file>
6+
<file>qml-other/begin-menu/BeginMenu.qml</file>
7+
<file>qml-other/panels/PersonPanel.qml</file>
8+
<file>qml-other/panels/ToDoPanel.qml</file>
9+
</qresource>
10+
</RCC>

0 commit comments

Comments
 (0)