Important: Please read the Qt Code of Conduct -

Use Qt DLL without environment variables

  • Hello!

    I create Qt's DLL for Excel (VBA). When I try run it, I have error "run-time error 53: file not found".

    I add to environment variables:
    path: c:\excelandqtexample
    QT_QPA_PLATFORM_PLUGIN_PATH: c:\excelandqtexample\platforms\

    And it's work!

    But it's bad solution for me.

    How can I run its DLL without adding environment variables?

    If I run simple Qt exe file (not DLL) without adding environment variables, it's work.

  • @MChe

    Look for the following my suggestions.

    1. QCoreApplication::addLibraryPath()
    2. qt.conf

Log in to reply