Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] Using qwindowsd.dll platform from correct location
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Using qwindowsd.dll platform from correct location

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 2.6k Views 1 Watching
  • 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.
  • F Offline
    F Offline
    frankiefrank
    wrote on last edited by
    #1

    I'm working with Qt 5.3 and I run my application on my development machine (running the executable).

    I checked Process Explorer and looks like the qwindowsd.dll is used from the C:\Qt5\5.3\ path, though in the folder I'm running the executable from has a platforms sub-folder containing the same file.

    There is also a few dlls taken from the Qt folder's plugins\imageformats and plugins\accessible folders.

    What can I do to make sure that all of these are used from the executable's folder?

    "Roads? Where we're going, we don't need roads."

    1 Reply Last reply
    0
    • hskoglundH Online
      hskoglundH Online
      hskoglund
      wrote on last edited by
      #2

      Hi, Qt tries to load qwindowsd.dll in 5 different ways:

      1. Qt installation path (plugpath=) written into Qt5Cored.dll when you installed Qt.
      2. via a possible call QApplication::addLibraryPath(path); (before QApplication a(argc, argv); in main.cpp)
      3. if there is a qt.conf together with your .exe file, look for plugin=path in the file
      4. if there's a platforms subdirectory where your .exe file is
      5. if there's an environment variable QT_PLUGIN_PATH

      However on you development machine, Qt almost always choose 1). To avoid it, for example you can "binary edit Qt5Cored.dll":http://www.tripleboot.org/?p=536#BinaryEditing

      1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        Temporarily rename C:\Qt5, so that Qt can't find it and is forced to load a different copy.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0
        • F Offline
          F Offline
          frankiefrank
          wrote on last edited by
          #4

          Thanks - hskoglund and JKSH - great info and tip.

          "Roads? Where we're going, we don't need roads."

          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