Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QT1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Leblond Adrien
QT1
Commits
07cef9df
Commit
07cef9df
authored
2 months ago
by
Adrien
Browse files
Options
Downloads
Patches
Plain Diff
commit initial
parents
Branches
Branches containing commit
No related tags found
1 merge request
!1
Master
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+55
-0
55 additions, 0 deletions
.gitignore
main.cpp
+22
-0
22 additions, 0 deletions
main.cpp
main.qml
+31
-0
31 additions, 0 deletions
main.qml
tutoGitQt.pro
+19
-0
19 additions, 0 deletions
tutoGitQt.pro
with
127 additions
and
0 deletions
.gitignore
0 → 100644
+
55
−
0
View file @
07cef9df
# C++ objects and libs
*.slo
*.lo
*.o
*.a
*.la
*.lai
*.so
*.so.*
*.dll
*.dylib
# Qt-es
object_script.*.Release
object_script.*.Debug
*_plugin_import.cpp
/.qmake.cache
/.qmake.stash
*.pro.user
*.pro.user.*
*.qbs.user
*.qbs.user.*
*.moc
moc_*.cpp
moc_*.h
qrc_*.cpp
ui_*.h
*.qmlc
*.jsc
Makefile*
*build-*
*.qm
*.prl
# Qt unit tests
target_wrapper.*
# QtCreator
*.autosave
# QtCreator Qml
*.qmlproject.user
*.qmlproject.user.*
# QtCreator CMake
CMakeLists.txt.user*
# QtCreator 4.8< compilation database
compile_commands.json
# QtCreator local machine specific files for imported projects
*creator.user*
*_qmlcache.qrc
\ No newline at end of file
This diff is collapsed.
Click to expand it.
main.cpp
0 → 100644
+
22
−
0
View file @
07cef9df
#include
<QGuiApplication>
#include
<QQmlApplicationEngine>
int
main
(
int
argc
,
char
*
argv
[])
{
QGuiApplication
app
(
argc
,
argv
);
QQmlApplicationEngine
engine
;
const
QUrl
url
(
QStringLiteral
(
"qrc:/tutoGitQt/main.qml"
));
QObject
::
connect
(
&
engine
,
&
QQmlApplicationEngine
::
objectCreated
,
&
app
,
[
url
](
QObject
*
obj
,
const
QUrl
&
objUrl
)
{
if
(
!
obj
&&
url
==
objUrl
)
QCoreApplication
::
exit
(
-
1
);
},
Qt
::
QueuedConnection
);
engine
.
load
(
url
);
return
app
.
exec
();
}
This diff is collapsed.
Click to expand it.
main.qml
0 → 100644
+
31
−
0
View file @
07cef9df
import
QtQuick
Window
{
id
:
window
width
:
640
height
:
480
visible
:
true
title
:
qsTr
(
"
Hello World
"
)
Rectangle
{
id
:
rectangle
width
:
300
height
:
200
color
:
"
#ffffff
"
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
TextInput
{
id
:
textInput
width
:
80
height
:
20
text
:
qsTr
(
"
Text Input
"
)
anchors.verticalCenter
:
parent
.
verticalCenter
font.pixelSize
:
12
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
font.bold
:
true
anchors.horizontalCenter
:
parent
.
horizontalCenter
}
}
}
This diff is collapsed.
Click to expand it.
tutoGitQt.pro
0 → 100644
+
19
−
0
View file @
07cef9df
QT
+=
quick
SOURCES
+=
\
main
.
cpp
resources
.
files
=
main
.
qml
resources
.
prefix
=
/
$$
{
TARGET
}
RESOURCES
+=
resources
#
Additional
import
path
used
to
resolve
QML
modules
in
Qt
Creator
'
s
code
model
QML_IMPORT_PATH
=
#
Additional
import
path
used
to
resolve
QML
modules
just
for
Qt
Quick
Designer
QML_DESIGNER_IMPORT_PATH
=
#
Default
rules
for
deployment
.
qnx
:
target
.
path
=
/
tmp
/
$$
{
TARGET
}
/
bin
else
:
unix
:
!
android
:
target
.
path
=
/
opt
/
$$
{
TARGET
}
/
bin
!
isEmpty
(
target
.
path
)
:
INSTALLS
+=
target
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment