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. How to get Qt dll/so file full qualified path
Qt 6.11 is out! See what's new in the release blog

How to get Qt dll/so file full qualified path

Scheduled Pinned Locked Moved General and Desktop
7 Posts 5 Posters 4.5k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi,

    I have written a dll/.so in Qt which is getting loaded by some third part application, I would like to get full qualified path for my Qt dll, inside my dll.

    How to retrieve this.

    Regards
    Ashish

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hello there,

      what do you mean with "full qualified path"? do you want it to be integrated in your dll (statically link it)? or do you want your program to use the third party application to find Qt dlls automatically? I don't get it!

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        I have mstsc exe that will eventually load my Qt dll.
        Inside my Qt dll I want the full path of the location where I copied my Qt dll.
        I tried with QCoreApplication::applicationDirPath and applicationFilePath,

        but it gives me path to mstsc.exe not my Qt dll path.

        I hope, I made you understand.....

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          Did you check "QLibraryInfo":http://developer.qt.nokia.com/doc/qt-4.8/qlibraryinfo.html#location already?
          However, this may reflect the true path only when properly installed.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Thanks for your reply, but this gives all the path to the various Qt folder where I have installed my Qt SDK.

            I am looking for the path of my dll, not the path for Qt SDK dll.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              ABOBA228
              wrote on last edited by
              #6

              Hello from future! I have same problem, so did you find the way how to do that? @aashish-lg

              1 Reply Last reply
              0
              • Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #7

                What exactly do you need? The path where the Qt dlls are in --> https://doc.qt.io/qt-6/qlibraryinfo.html#path ? What will you do with this information?

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                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