Hi High_flyer,

To be clear : I'm talking about creating your own set of widgets (or other classes), and providing a library to other programmers that is easy to integrate.

When you use wwWidgets and when you put CONFIG+=wwwidgets in your .pro file, you don't have to provide any paths. Libraries and header files are installed in the appropriate directories when you (n)make install wwWidgets.

Where should the output go ? I mean the final .lib or .dll, and I mean where in the Qt directory. wwWidgets make install puts its binaries directly under /lib, and creates a wwWidgets subdirectory in the /include directory. Personally, I prefer a solution where 3rd party files are not mixed with Qt's own files.

Then my question about copying or not... you ask "what user". As clarified before, I mean a programmer using my library. Of course he needs the header files and so on. But the question was : do I copy the include files of my library to e.g. the "include" directory of Qt, or instead add (the includes of) my source directory to the Qt include path ?

wwWidgets uses the 'copy' approach. However in Qt's prf files I see something like QMAKE_PRL_BUILD_DIR = xxxxx which says from what source directory the library was built, indicating more of a 'referencing' approach. However I think this is more for debugging (so you can trace the source) and not for building, since all headers and binaries of Qt are always in /include and /lib.

http://doc.qt.nokia.com/...adding-new-configuration-features

Well... this doesn't say anything about the keywords like QMAKE_PRL_BUILD_DIR that you see in most files. And wwWidgets uses a keyword qtAddLibrary() that seems to be undocumented

Then, its exactly the same as in Qt qmake/pro files.
Do you mean you can put anything in a prf like you would put in a pro or pri file ?

Regards,
Marc