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
Heim Thibaut
QT1
Compare revisions
70afebf6c4a4439efbf602b9ea41999b4004b68d to 30c1a6eee4d95be5b19dfc2e6f26e7fc007015c6
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
theim/qt1
Select target project
No results found
30c1a6eee4d95be5b19dfc2e6f26e7fc007015c6
Select Git revision
Branches
main
1 result
Swap
Target
theim/qt1
Select target project
theim/qt1
1 result
70afebf6c4a4439efbf602b9ea41999b4004b68d
Select Git revision
Branches
main
1 result
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
commit initial
· 8922f7df
Heim Thibaut
authored
2 months ago
8922f7df
Merge branch 'main' of
https://gitlab.ec-lyon.fr/theim/qt1
· 30c1a6ee
Heim Thibaut
authored
2 months ago
30c1a6ee
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+54
-0
54 additions, 0 deletions
.gitignore
CMakeLists.txt
+42
-0
42 additions, 0 deletions
CMakeLists.txt
Main.qml
+27
-0
27 additions, 0 deletions
Main.qml
main.cpp
+18
-0
18 additions, 0 deletions
main.cpp
with
141 additions
and
0 deletions
.gitignore
0 → 100644
View file @
30c1a6ee
# 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.
CMakeLists.txt
0 → 100644
View file @
30c1a6ee
cmake_minimum_required
(
VERSION 3.16
)
project
(
TutoQT VERSION 0.1 LANGUAGES CXX
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
find_package
(
Qt6 REQUIRED COMPONENTS Quick
)
qt_standard_project_setup
(
REQUIRES 6.5
)
qt_add_executable
(
appTutoQT
main.cpp
)
qt_add_qml_module
(
appTutoQT
URI TutoQT
VERSION 1.0
QML_FILES
Main.qml
)
# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
# If you are developing for iOS or macOS you should consider setting an
# explicit, fixed bundle identifier manually though.
set_target_properties
(
appTutoQT PROPERTIES
# MACOSX_BUNDLE_GUI_IDENTIFIER com.example.appTutoQT
MACOSX_BUNDLE_BUNDLE_VERSION
${
PROJECT_VERSION
}
MACOSX_BUNDLE_SHORT_VERSION_STRING
${
PROJECT_VERSION_MAJOR
}
.
${
PROJECT_VERSION_MINOR
}
MACOSX_BUNDLE TRUE
WIN32_EXECUTABLE TRUE
)
target_link_libraries
(
appTutoQT
PRIVATE Qt6::Quick
)
include
(
GNUInstallDirs
)
install
(
TARGETS appTutoQT
BUNDLE DESTINATION .
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
This diff is collapsed.
Click to expand it.
Main.qml
0 → 100644
View file @
30c1a6ee
import
QtQuick
Window
{
width
:
640
height
:
480
visible
:
true
title
:
qsTr
(
"
Hello World
"
)
Rectangle
{
id
:
rectangle
x
:
220
y
:
140
width
:
200
height
:
200
color
:
"
#110fb3
"
Text
{
id
:
_text
x
:
59
y
:
80
width
:
53
height
:
41
text
:
qsTr
(
"
TEXTE
"
)
font.pixelSize
:
30
}
}
}
This diff is collapsed.
Click to expand it.
main.cpp
0 → 100644
View file @
30c1a6ee
#include
<QGuiApplication>
#include
<QQmlApplicationEngine>
int
main
(
int
argc
,
char
*
argv
[])
{
QGuiApplication
app
(
argc
,
argv
);
QQmlApplicationEngine
engine
;
QObject
::
connect
(
&
engine
,
&
QQmlApplicationEngine
::
objectCreationFailed
,
&
app
,
[]()
{
QCoreApplication
::
exit
(
-
1
);
},
Qt
::
QueuedConnection
);
engine
.
loadFromModule
(
"TutoQT"
,
"Main"
);
return
app
.
exec
();
}
This diff is collapsed.
Click to expand it.