Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to Make Plugins Using Qt Creator
QtWS25 Last Chance

How to Make Plugins Using Qt Creator

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 2 Posters 3.7k Views
  • 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
    masoug
    wrote on last edited by
    #1

    Hi,
    I am a novice with Qt Creator, and I am trying to make dynamic link libs for my application via the Qt Creator. When I use the Qt Creator's template, the compiled output of my plugin library is a static shared library. How does the Qt Plugin system work? I am having a bit of difficulty trying to get a library working...

    Thanks!

    -Masoug

    C++kie Monster

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

      What exactly are you trying to do?

      Are you trying to get a dynamic library (something like QtCore) up and running or a plugin into your application/library? Technically both are pretty much the same thing, but the method to actually make use of the code differs slightly:-)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        masoug
        wrote on last edited by
        #3

        Thanks!

        I'm trying to do something like the Plug and Paint Demo, where they showed how to make plugins for the application, not Qt. And some of the plugins are dynamic link libs, so the program loads them at runtime. I can't seem to replicate this on Qt Creator because Qt Creator says "Shared Library" (I use the template) but when I compile my project, it spits out a static library.

        How do I make plugins for applications?

        -Masoug

        C++kie Monster

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

          That would be strange... what exactly does it spit out and which OS are you using? What does your .pro-file look like?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            masoug
            wrote on last edited by
            #5

            So I go to File > New File or Project and I choose the "Other Project" template and select "C++ Library". Then I click "Choose..." and select "Shared Library" as type. Then the rest of the process were normal. When I compile the template, on the build folder i only find a ".a" file, no ".dll" file.

            I run Windows Vista w/ Qt Creator 2.0.0

            Thanks!

            -Masoug

            .pro file:

            @#-------------------------------------------------

            Project created by QtCreator 2010-09-19T09:53:58

            #-------------------------------------------------

            QT -= gui

            TARGET = untitled
            TEMPLATE = lib

            DEFINES += UNTITLED_LIBRARY

            SOURCES += untitled.cpp

            HEADERS += untitled.h
            untitled_global.h
            @

            C++kie Monster

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

              I figured it out, I just add "dll" to the end of the CONFIG keyword.

              Thanks!

              C++kie Monster

              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