I would like to use options in the static method QFileDialog.getOpenFileName.
For example i would like to set two options: QFileDialog.ExistingFile and QFileDialog.Detail.
I have already read this text: http://pyside.github.io/docs/pyside/PySide/QtGui/QFileDialog.html?highlight=getopenfilename#PySide.QtGui.PySide.QtGui.QFileDialog.getOpenFileName but i don't understand how i can use PySide.QtGui.QFileDialog.Options?
dir = self.sourceDir
filters = "Text files (*.txt);;Images (*.png *.xpm *.jpg)"
selected_filter = "Images (*.png *.xpm *.jpg)"
options = "" # ???
fileObj = QFileDialog.getOpenFileName(self, " File dialog ", dir, filters, selected_filter, options)
If i use
options = QFileDialog.DirectoryOnly
options |= QFileDialog.List
it does not work.
(Windows 7 64 Bit, PyCharm 3.4.1 Pro, Python 3.4.0, PySide 1.2.2)