1

I want to know how to edit the appearance of QFileDialog with the "DontUseNativeDialog" option (this first picture) into the native appearance (the second picture). Like the label of the buttons and other styles.

I need a QFileDialog allow the user to select multiple directories. I find the solution like this but the appearance changed.

Picture 1: not native dialog

Picture 1: not native dialog

Picture 2: native dialog

Picture 2: native dialog

  • Are those screenshot taken from the same system? Are you using some custom styling (`setStyle()` or `setStyleSheet()`)? – musicamante Dec 24 '21 at 21:34
  • Those screenshot taken from the same system. For the first one, I use "file_dialog.setOption(QFileDialog.DontUseNativeDialog, True)". I think the first one was implemented in PyQt so that I can setSelectionMode and the second one was implemented in Windows SDK (I guess, because most the file selection dialog in other program is the same style) so I can not edit anything. – dinglei0719 Dec 25 '21 at 13:14

0 Answers0