Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
projetcppqt
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Durand Ulysse
projetcppqt
Commits
dddb3ba8
Commit
dddb3ba8
authored
3 months ago
by
Yanis Dziki
Browse files
Options
Downloads
Patches
Plain Diff
Ajout menu
parent
75bfd6d2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
motus/Main.qml
+22
-0
22 additions, 0 deletions
motus/Main.qml
motus/MenuDeroulant.qml
+7
-3
7 additions, 3 deletions
motus/MenuDeroulant.qml
with
29 additions
and
3 deletions
motus/Main.qml
+
22
−
0
View file @
dddb3ba8
...
...
@@ -4,12 +4,33 @@ Window {
width
:
900
height
:
800
visible
:
true
color
:
"
#8ff0a4
"
title
:
qsTr
(
"
Hello World
"
)
Rectangle
{
id
:
rectangle
x
:
286
y
:
86
width
:
328
height
:
58
color
:
"
#26a269
"
Text
{
id
:
_text
x
:
121
y
:
12
color
:
"
#f1e6e6
"
text
:
qsTr
(
"
Motus
"
)
font.pixelSize
:
30
}
}
MenuDeroulant
{
id
:
menuDeroulant
x
:
38
y
:
301
rectangleColor
:
"
#b33939
"
}
Bouton
{
...
...
@@ -26,4 +47,5 @@ Window {
anchors.centerIn
:
parent
}
}
This diff is collapsed.
Click to expand it.
motus/MenuDeroulant.qml
+
7
−
3
View file @
dddb3ba8
...
...
@@ -5,7 +5,8 @@ Item {
id
:
_item
property
alias
_textText
:
_text
.
text
width
:
400
height
:
expanded
?
250
:
50
// Ajuste la hauteur dynamiquement
height
:
25
property
alias
rectangleColor
:
rectangle
.
color
// Ajuste la hauteur dynamiquement
property
bool
expanded
:
false
// Gère l'affichage des options
ListModel
{
...
...
@@ -15,7 +16,7 @@ Item {
Rectangle
{
id
:
rectangle
width
:
400
height
:
5
0
height
:
2
5
color
:
"
#ffffff
"
Text
{
...
...
@@ -29,8 +30,10 @@ Item {
Image
{
id
:
image
x
:
331
y
:
0
width
:
69
height
:
50
height
:
92
anchors.right
:
parent
.
right
anchors.rightMargin
:
0
source
:
"
qrc:/qtquickplugin/images/template_image.png
"
...
...
@@ -38,6 +41,7 @@ Item {
MouseArea
{
anchors.fill
:
parent
anchors.bottomMargin
:
25
onClicked
:
{
expanded
=
!
expanded
// Basculer l'affichage
console
.
log
(
"
Click sur image
"
)
...
...
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