@SLaks This can be very useful if you are trying to launch a new window from a console application. One option is to use showDialog(); But then itβs hard to close it.
If you use Show() , then Application.run() (these are nuts and bolts using the Application class to start a new message loop)
When you call Application.Exit() in your main console thread, the application actually closes;
using showDialog() , you must interrupt the stream, and then wait until the window receives some input, i.e. mouse or focus. otherwise it will go out forever.
source share