Closed julianstar88 closed 4 years ago
There is no need to create an own FileDialog. The solution was to call setWindowIcon
in the MainWindow
Class. Together with the Class CustomIcon
in the CustomGuiComponentes
Module, this is an easy way to provide icons in many sizes for the app
Reason
The QFileDialog uses a native dialog style that doesn´t allow us to use a custom window icon (according to the documentation custom icon lookup cause severe performance issues).
There are two approaches:
using the option
dialog.setOption(QtWidgets.QFileDialog.DontUseNativeDialog)
. That leads to a ugly and freezing gui, thus this option is not recommendedCreate a Custom File Dialog from Scratch
Especially the second approach is related which great effort. It's related to developing a customized FileModel, whose performance is poor on windows (at least to this point of my knowledge)
progress