Qt apps hang on file selection

I think I messed up something in my system. Some Qt apps hang (freeze) when I try to open or save a file. Some open the file selection dialog window, but it is very slow and freezes.

When I run them in terminal I do not see anything relevant.

GTK apps and flatpaks works without any problems. What could be the issue? Where should I look?