Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider reinstating Z-index support #100

Open
ajyoon opened this issue May 9, 2023 · 0 comments
Open

Consider reinstating Z-index support #100

ajyoon opened this issue May 9, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ajyoon
Copy link
Collaborator

ajyoon commented May 9, 2023

A user recently reported they were relying on the z-index support removed in 0.1.7. If I remember right, I did this because work on inherited transforms was changing the way the Qt scene object graph was organized, and maintaining Z-index semantics was tricky, and unlikely to work in a backwards compatible manner.

Since there are real use-cases for this feature, this decision is worth revisiting. I think z-index support probably could be reimplemented, using or not using Qt's z-index system. Not using it would be a matter of changing the child object render order in PositionedObject.render from a simple list iteration to a pretty simple 'group by z index, then iterate' process. Alternatively, there probably is a way to use Qt's z-index system, but some care would be needed since the scene graph structure changes when objects are in or outside of flowable contexts.

@ajyoon ajyoon added the enhancement New feature or request label May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant