Qt - easy plugin system example

From Kenneth Noyens
Revision as of 15:31, 24 May 2009 by Kenneth (talk | contribs) (Nieuwe pagina aangemaakt met 'Main application (loads the plugins): - plugintest.pro - main.cpp - pluginInterface - plugins.cpp - plugins.h - plugins.ui Make a folder...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Main application (loads the plugins):

- plugintest.pro
- main.cpp
- pluginInterface
- plugins.cpp
- plugins.h
- plugins.ui

Make a folder in the main application (ex. Text1Plugin) and add the folowing files:

- text1plugin.pro
- text1plugin.cpp
- text1plugin.h

Watch out:

- When you compile your project, you must compile both projects as the same build configuration.(both debug or release)
- When you build text1plugin put the compiled dll in a folder named 'plugins' in the appication directory.