Skip to content

Z value for drawing#150

Merged
SimonRohou merged 2 commits into
ENSTABretagneRobotics:masterfrom
godardma:z_value
Dec 13, 2025
Merged

Z value for drawing#150
SimonRohou merged 2 commits into
ENSTABretagneRobotics:masterfrom
godardma:z_value

Conversation

@godardma

Copy link
Copy Markdown
Contributor

Explanations are in the all_commands.cpp :

Default ZValue is 0

ZValues have to be seen as a tree structure:

  • groups are drawn by ascending ZValue order
  • items with no groups are treated as groups (with only one item)
  • in a group, items are drawn by ascending ZValue order

In definitive, Qt looks at the lowest ZValue group (or solo item), then draws it or all its items by ascending ZValue order,
then goes to the second lowest ZValue group, etc.

The latest item to be drawn shows on top

@SimonRohou SimonRohou merged commit 3e3fd94 into ENSTABretagneRobotics:master Dec 13, 2025
16 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants