simple PySide2 QWidgets app loads Qt5Qml.dll, it should not load
Unsolved
Qt for Python
-
Hi
I'm using PySide2-5.12.0-5.12.0-cp35.cp36.cp37-none-win32.whl with python 3.7.2 on Windows 7 SP1 64Bit.
When I run the following code, a simple app only has a QPushButton.import sys from PySide2.QtWidgets import QApplication, QPushButton from PySide2.QtCore import Slot @Slot() def say_hello(): print("Button clicked, Hello!") if __name__ == "__main__": app = QApplication(sys.argv) button = QPushButton("Click me") button.clicked.connect(say_hello) button.show() app.exec_()
Use ProcessHacker to see the process's modules.
I found that PySide2 loads Qt5Qml.dll and Qt5Network.dll.
Why PySide2 loads the 2 dlls? This demo doesn't use qml and network.
I think it shoud not load dlls that are not required.
It will increase the app installer size if I package the app.
PyQt5 doesn't have this issue.