[Gambas-user] getting warning when quitting running application

Benoît Minisini g4mba5 at gmail.com
Wed May 11 22:14:19 CEST 2022


Le 11/05/2022 à 21:42, Charles Bukowski a écrit :
> It works perfectly!! With no warnings in console as well !!
> (I've used mine)
> Many thx
> 

When making a GUI problem, you should tell Gambas which window can be 
considered the main window, by setting the Application.MainWindow property.

Then, closing that main window will automatically close all other 
windows, and your program will quit gracefully (unless there are pending 
file watches, timers, sockets...).

See https://gambaswiki.org/wiki/comp/gb.qt4/application/mainwindow

Regards,

-- 
Benoît Minisini


More information about the User mailing list