Replies: 2 comments 2 replies
-
Why to you post this as a discussion and as an issue?! |
Beta Was this translation helpful? Give feedback.
2 replies
-
A |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I'm working on a Slint UI application where my main window contains a button that opens a new child window with a form. I want to automatically close this child window after the form is successfully submitted (when no validation errors are found).
Currently, window closing is only handled through the
on_close_request
event, which is triggered by window management actions (like clicking the X button). However, I need a way to programmatically close the window from within my code after form submission.Current Behavior
Desired Behavior
Question
Is there an API method available to programmatically close a Slint window? Looking for something similar to:
or
on_close_request
event handler is not sufficient for this use case as it only handles window manager close eventssimilar issue: #5465 marked answered but it's not.
Beta Was this translation helpful? Give feedback.
All reactions