Important: Please read the Qt Code of Conduct -

QDialog Embedded in QWidget

  • Hi,

    Is it possible to have a QFileDialog embedded into a QWidget or into another custom QDialog.

    Thanks in advance.

  • From my experience this is not possible because a QFileDialog is based on "QDialog": and QDialog is not intended to be displayed as widget inside another widget, but as a top-level window on its own.

    I don't know about the internals of QFileDialog but maybe it is possible to subclass QFileDialog and expose the internally built widget so you could use it as "stand alone" widget.

Log in to reply