Skip to content

How can I make the widget vertically centered, top, and bottom? #529

Answered by AllenDang
Seikaijyu asked this question in Q&A
Discussion options

You must be logged in to vote

You will have to use DummyWidget as the spacer, calcuate the width and height for it's size using g.GetAvailableRegion().
Try set -1 to width and height and you will see what does it mean.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@Seikaijyu
Comment options

@Seikaijyu
Comment options

@gucio321
Comment options

@gucio321
Comment options

@Seikaijyu
Comment options

Answer selected by Seikaijyu
Comment options

You must be logged in to vote
1 reply
@gucio321
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants