Hello. Actually the question is this: is it possible, and if it is possible, how can we fix the dialogue on the widget? For example, I do not need to call QFileDialog on click, but I need it to always be on the same widget (not in a separate window).

  • Did not check, but maybe dlg.setParent (mainWnd) ;? Of course, you will need to specify the location on the form, size, visibility. - maestro
  • @maestro Thanks for the help. I tried to do so. The issue is decided. Only strange. If the parent is MainWindow, then nothing happens, but if it is ui-> CentralWidget, then the dialog appears without any problems. - Malice

0