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. Importing a .dll file

Importing a .dll file

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 5.7k 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.
  • S Offline
    S Offline
    Subhash
    wrote on last edited by
    #1

    Hi,
    I am new to this forum...i wanted to know how to import a .dll file in Qt.....
    Can anyone please help me......

    Edit (Andre): removed the shouting in the subject line. Please don't use all caps.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Franzk
      wrote on last edited by
      #2

      Look into "QLibrary":http://doc.trolltech.com/latest/qlibrary.html.

      "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        Take a look at the LIBS variable in the qmake manual, that is available in the documentation that was installed with your Qt installation.

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

          For clarification: Use QLibrary for runtime loading, use the LIBS variable in your pro file for compile time linking.

          "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andre
            wrote on last edited by
            #5

            You're absolutely right of course, Franzk. Subhash, could you clarify if you want to load the library at runtime, or if you want to link to it at compile time?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Subhash
              wrote on last edited by
              #6

              Thanks for the help.....
              I need to load a dll file at compile time and can i get information on LIBS variable...do I need to include Qlibrary to call LIBS variable or can it be accessed directly...

              1 Reply Last reply
              0
              • F Offline
                F Offline
                Franzk
                wrote on last edited by
                #7

                You do not need QLibrary if you link at compile time (that is using the LIBS variable in your .pro file).

                "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

                http://www.catb.org/~esr/faqs/smart-questions.html

                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