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. Deployment of a dll on windows
Forum Updated to NodeBB v4.3 + New Features

Deployment of a dll on windows

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 369 Views 2 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.
  • E Offline
    E Offline
    eric_vi
    wrote on last edited by
    #1

    i created a dll that use qt5 on windows..

    if the platforms folder is not next to the host application that loads my dll . i get the infamous missing qtplatform error at launch.

    is there a way to have this dll to look for this platforms folder somewhere else than within the host application folder.. i would like to have all my dll related stuff at the location i have decided...

    i have no clue so far . Thanks for any help

    JKSHJ 1 Reply Last reply
    0
    • E eric_vi

      i created a dll that use qt5 on windows..

      if the platforms folder is not next to the host application that loads my dll . i get the infamous missing qtplatform error at launch.

      is there a way to have this dll to look for this platforms folder somewhere else than within the host application folder.. i would like to have all my dll related stuff at the location i have decided...

      i have no clue so far . Thanks for any help

      JKSHJ Online
      JKSHJ Online
      JKSH
      Moderators
      wrote on last edited by
      #2

      @eric_vi said in Deployment of a dll on windows:

      is there a way to have this dll to look for this platforms folder somewhere else than within the host application folder..

      Yes there is.

      In your DLL, call QCoreApplication::addLibraryPath() before you instantiate your QGuiApplication/QApplication: https://doc.qt.io/qt-5/qcoreapplication.html#addLibraryPath The argument should be the folder which contains the platforms folder.

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

      1 Reply Last reply
      2

      • Login

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