Skip to content

How to set window position? #3560

Answered by ogoffart
ales-tsurko asked this question in Q&A
Discussion options

You must be logged in to vote

It is not possible to set the Window position directly in .slint
You need to use the native API for that.

The rationale is that the Slint code should mainly be there for doing the design of the UI, and setting the position is not something a designer would design, it is more part of the logic.

A common use case i've seen for setting the position of a Window is to implement drag and move of the window. IMHO that is a valid use case and we should address it by having drag handle as tracked in #613

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ales-tsurko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants