|
JKQtExtras
a library of useful Qt widgets and tools
|

Modules | |
| JKQtExtras: Tool Classes | |
| JKQtExtras: Widgets | |
Macros | |
| #define | JKQTEXTRAS_LIB_EXPORT |
| #define JKQTEXTRAS_LIB_EXPORT |
This define allows to export functions and classes from the jkqtcommon-library when building a dynamic/shared library. Usage is as follows:
These macros append the appropriate __declspec(dllexport) and __declspec(dllimport) to the function/class body and thus tell windows compilers to export these sysmbols from the shared library, or import them from a shared library.
Note that these attributes are only necessary on windows systems!
These macros are controlled by two other macros:
JKQTEXTRAS_LIB_IN_DLL declares that the application should link against a shared version of JKQtExtras, i.e. JKQtExtrasSharedLib_XYZ . This needs to be defined while compiling the library and while compiling any application linking against JKQtExtrasSharedLib_XYZ.JKQTEXTRAS_LIB_EXPORT_LIBRARY is only defined while compiling JKQtExtras into JKQtExtrasSharedLib_XYZ and ensures thet the symbols are exported. If it is not defined (e.g. while compiling an application), the symbols are imported