Skip to content
Discussion options

You must be logged in to vote

By default, if not in a layout, the elements should be centered.
This is equivalent to do

x: (parent.width - self.width)/2;
y: (parent.height - self.height)/2;

But that element must have a width and height specified (or a preferred-{width,height})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant