Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Syntax : QFileDialog.Options()
Catacomb last edited by
Hi, I'm a newbie who want to learn how to use Qt for my project.
I found several online examples of using QFileDialog.Options something like this :
def saveFileDialog(self): options = QFileDialog.Options() options |= QFileDialog.DontUseNativeDialog
I'm just curious of the notation "|=", what's its use in these context? Or, it's just a typo?
Hopefully someone in the forum willing to answer my curiosity.... :-)
Many thanks in advance.
options |= QFileDialog.DontUseNativeDialog
This is not Qt specific. This line is same as
options = options | QFileDialog.DontUseNativeDialog
You should read about Python operators.