I am using QFileDialog
(both getOpenFileName
and getSaveFileName
) but have a strange behavior:
QtGui.QFileDialog.DontUseNativeDialog
DontUseNativeDialog
option DontUseNativeDialog
option, the dialog close right after opening My questions:
I found out that this problem comes from a strange conflict with ipython and its --pylab
start option. It can thus be avoided by either
python xxxx.py
In both cases, the qapplication should be started manually:
qapp = QtGui.QApplication([])
my_app = MyQtAppWindow(...)
my_app.exec_()
However, I still don't know why there is a conflict.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.