Qt World Summit: Register Today!

simple PySide2 QWidgets app loads Qt5Qml.dll, it should not load

  • 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
    def say_hello():
        print("Button clicked, Hello!")
    if __name__ == "__main__":
        app = QApplication(sys.argv)
        button = QPushButton("Click me")

    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.


Log in to reply