Working with an application that processes spreadsheets, I noticed a very annoying effect. What happens is as follows:
1 the file with the spreadsheet is selected using the TOpenDialog
2 TOpenDialog is destroyed
3 file is processed
I would expect that the dialog is removed from the screen after step 2. What happens is that it stays on screen until step 3 ends. That is very annoying as the user has the impression nothing happens.
I attach an example. The original window is maximized so you can see that the cursor is really changed by moving the cursor out from the file selection window. This happens on QT5 (5.15.13) as well as on QT6 (6.4.2).
In GTK2 the fileselection window disappears instantly in step 2, albeit .. there the cursor doesn't change

But one thing at a time: why doesn't the fileselection window disappear ? What am i doing wrong.
Compile the attached example under the different widget sets and see for yourself. Oh .. in the window the actual widget set is mentioned.
Linux Mint 22.3 Zena, Cinnamon v: 6.6.7
Lazarus 4.4
Freepascal 3.2.2