Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Environment issues: Runs in VS2022 but not outside
Qt 6.11 is out! See what's new in the release blog

Environment issues: Runs in VS2022 but not outside

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 194 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    panch
    wrote on last edited by
    #1

    I have a Qt5.15.2 64Bit application that uses QtQuick to display some QML resources in QWidget application.

    I simply cannot get the application to work outside the VS2022 environment.
    If I use windeployqt to assemble Qt binaries and dependent sub folders into the Release folder, I can run the program in Release configuration both with or without debugging with no problem.

    If I then go out into explorer and execute the program directly, it doesn't work. DebugView++ tells me this:

    qrc:/statusindicator:1:1: plugin cannot be loaded for module "QtQuick": Cannot load library D:\MyProgram\Release\qml\QtQuick.2\qtquick2plugin.dll: The specified module could not be found.
    

    Even though the file is there. If I rename the qml folder, I can verify that it also does not work through the VS IDE.

    Any ideas? This is the behavior on two different PC's. I have other programs installed that use their own versions of Qt - some of them are also in the PATH env, but I guess this should not be an issue if it can find the dll's locally?

    Hope to get some good pointers out there.

    Thanks,
    Carsten

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved