From 3de8d3988136038d69584a04cb69fe94187389c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Delobel?= Date: Sun, 23 Mar 2025 14:37:19 +0100 Subject: [PATCH] MAJ avancement --- 2024/avancement.md | 27 ++++++++- 2024/example_login/.gitignore | 82 ---------------------------- 2024/example_login/example_login.pro | 21 ------- 2024/example_login/main.cpp | 25 --------- 2024/example_login/main.qml | 15 ----- 2024/example_login/qml.qrc | 5 -- 6 files changed, 24 insertions(+), 151 deletions(-) delete mode 100644 2024/example_login/.gitignore delete mode 100644 2024/example_login/example_login.pro delete mode 100644 2024/example_login/main.cpp delete mode 100644 2024/example_login/main.qml delete mode 100644 2024/example_login/qml.qrc diff --git a/2024/avancement.md b/2024/avancement.md index e6fa67d..efe45f5 100644 --- a/2024/avancement.md +++ b/2024/avancement.md @@ -11,10 +11,31 @@ * Vérifier l'avancement * Todo : TP2 (QML) -## Todo prof - -* Les inscriptions sur gitea necessites une première connexion! Demander aux étudiants (voire même le faire en cours avec démo) # Cours 2, 4h +## Cours + +* "Révision" de C++ sur les itérateurs (STL non abordée en C++?) + * Nécessaire pour comprendre TP1 + * Voir projet revision_stl + +## TP + +* TP2: QML : Positionnement (Anchors + Columns) + +# Cours 3, 4h + +## Cours + +* Cours 2 : Signaux + intéractions + * Signaux/slots en C++ et QML + * Propriété + * SetContextProperty + * Arrivé **avant** les modèles simples, les QVariants +* Cours tableau sur les lambda (voir correction lambda) + +## TP +* Fin du TP2 +* TP improvisé: SuperRectangle (cf correction) diff --git a/2024/example_login/.gitignore b/2024/example_login/.gitignore deleted file mode 100644 index aa3808c..0000000 --- a/2024/example_login/.gitignore +++ /dev/null @@ -1,82 +0,0 @@ -# This file is used to ignore files which are generated -# ---------------------------------------------------------------------------- - -*~ -*.autosave -*.a -*.core -*.moc -*.o -*.obj -*.orig -*.rej -*.so -*.so.* -*_pch.h.cpp -*_resource.rc -*.qm -.#* -*.*# -core -!core/ -tags -.DS_Store -.directory -*.debug -Makefile* -*.prl -*.app -moc_*.cpp -ui_*.h -qrc_*.cpp -Thumbs.db -*.res -*.rc -/.qmake.cache -/.qmake.stash - -# qtcreator generated files -*.pro.user* -*.qbs.user* -CMakeLists.txt.user* - -# xemacs temporary files -*.flc - -# Vim temporary files -.*.swp - -# Visual Studio generated files -*.ib_pdb_index -*.idb -*.ilk -*.pdb -*.sln -*.suo -*.vcproj -*vcproj.*.*.user -*.ncb -*.sdf -*.opensdf -*.vcxproj -*vcxproj.* - -# MinGW generated files -*.Debug -*.Release - -# Python byte code -*.pyc - -# Binaries -# -------- -*.dll -*.exe - -# Directories with generated files -.moc/ -.obj/ -.pch/ -.rcc/ -.uic/ -/build*/ diff --git a/2024/example_login/example_login.pro b/2024/example_login/example_login.pro deleted file mode 100644 index b86ec65..0000000 --- a/2024/example_login/example_login.pro +++ /dev/null @@ -1,21 +0,0 @@ -QT += quick - -# You can make your code fail to compile if it uses deprecated APIs. -# In order to do so, uncomment the following line. -#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 - -SOURCES += \ - main.cpp - -RESOURCES += qml.qrc - -# 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 diff --git a/2024/example_login/main.cpp b/2024/example_login/main.cpp deleted file mode 100644 index c2c84fc..0000000 --- a/2024/example_login/main.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#include -#include - -int main(int argc, char *argv[]) -{ -#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) - QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); -#endif - QGuiApplication app(argc, argv); - - QQmlApplicationEngine engine; - const QUrl url(QStringLiteral("qrc:/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(); -} diff --git a/2024/example_login/main.qml b/2024/example_login/main.qml deleted file mode 100644 index 2dc2868..0000000 --- a/2024/example_login/main.qml +++ /dev/null @@ -1,15 +0,0 @@ -import QtQuick 2.15 -import QtQuick.Window 2.15 - -Window { - width: 640 - height: 480 - visible: true - title: qsTr("Hello World") - - Rectangle { - color: "blue" - width: parent.width / 10 - height: parent.height / 10 - } -} diff --git a/2024/example_login/qml.qrc b/2024/example_login/qml.qrc deleted file mode 100644 index 5f6483a..0000000 --- a/2024/example_login/qml.qrc +++ /dev/null @@ -1,5 +0,0 @@ - - - main.qml - -