c++ - How to make QFileDialog not modal in Qt5? -
c++ - How to make QFileDialog not modal in Qt5? -
in previous versions of qt able utilize next constructor of file dialog:
qfiledialog(qwidget * parent = 0, const char * name = 0, bool modal = false)
so, looks possible create non-modal file dialog. (in qt5) haven't such parameters in constructor. qfiledialog ignores setwindowmodality(qt::nonmodal);
, setmodal(false);
(i've checked, if windowmodality() == qt::nonmodal && ismodal() == false
, file dialog window still modal).
do have ideas, how create file dialog non-modal?
details: file dialog inherited qfiledialog. works absolutely expected. thing need create non-modal, can't find solution on , on qt-project. give thanks in advance.
the "problem" open file dialog modal window calling qdialog::open()
function. according qt docs qdialog::open()
:
shows dialog window modal dialog, returning immediately.
to create file dialog non modal open qdialog::show()
.
c++ qt qt5 qfiledialog non-modal
Comments
Post a Comment