QFileDialog::DontUseNativeDialog is not working

前端 未结 2 1239
耶瑟儿~
耶瑟儿~ 2020-12-16 20:05

I have an issue with a simple program. I\'m opening a QFileDialog this way:

QFileDialog fileDialog(this);
fileDialog.setAcceptMode(QFileDialog::AcceptOpen);
         


        
2条回答
  •  有刺的猬
    2020-12-16 21:02

    The native dialogs don't support the full array of features exposed by the QFileDialog class. That's why they are only available through the static short-cut functions called getOpenFileName(), getSaveFileName() etc'. If you're using these functions and still don't want to see the native dialog, you use the DontUseNativeDialog flag.

提交回复
热议问题