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. QLibrary and QtCreator's Utils plugin

QLibrary and QtCreator's Utils plugin

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

    Hi

    At first I tried to dynamically load QtCreator's Utils plugin into Qt based application using QPluginLoader. This produced an error that "Utils.dll" is not a valid Qt Plugin. Using QLibrary however I'm able to load it and resolve a function, but I'm having difficulties to resolve a class. Any ideas?

    Thanks

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      In Qt Creator we just link dynamically against Utils. Why do you need to do it the manual way?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        marcus.fr
        wrote on last edited by
        #3

        I'm looking for an option to use Utils.dll without incorporating the header files from QtCreator in my sources. I need SSH classes only.

        There are some very elegant classes in QtCreator sources. Sadly they are not incorporated in Qt library itself, I assume due to portability reasons.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Michael_BJFU
          wrote on last edited by
          #4

          I have the same question. There is no macro like Q_INTERFACE, how did the QPluginLoader work with it in qtcreator ?
          I have used QPluginLoader to load a plugin of Qt Creator4.7.4 and got an error message "it's not a valid Qt plugin". Please.....

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tobias.hunger
            wrote on last edited by
            #5

            AFAIR Utils is a library, not a plugin.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Michael_BJFU
              wrote on last edited by
              #6

              But Core.dll is a plugin. I got the same wrong message.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tobias.hunger
                wrote on last edited by
                #7

                Check the code that loads plugins in Qt Creator. I never checked what it does exactly, but since we have files defining dependencies and extra information like that it most likely does more than what the normal Qt methods for plugin loading does.

                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