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

How open a new window in the main window ? #3475

Closed
guobbs opened this issue Sep 15, 2023 · 1 comment
Closed

How open a new window in the main window ? #3475

guobbs opened this issue Sep 15, 2023 · 1 comment

Comments

@guobbs
Copy link

guobbs commented Sep 15, 2023

I didn't find any examples in the slint demo that can open two windows at the same time, nor did I find a way to do so.
How can I open a new window in the main window? For example: display message box dialog box, display pop-up window, etc.

I'm using Windows10/11 .

Thanks!

@ogoffart
Copy link
Member

At the moment it is a bit complicated because each slint invocation only generate one window. See #784
It is possible however if you use several slint! macros.
There is an example in this PR which uses another slint! macro to show a dialog: #2094

Closing this issue as it is already tracked in #784 , but thanks anyway.

@ogoffart ogoffart closed this as not planned Won't fix, can't repro, duplicate, stale Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants