Details
-
Suggestion
-
Resolution: Unresolved
-
P4: Low
-
None
-
None
Description
Sometimes it makes sense to build replica classes into libraries. However on Windows everything is private by default and needs to be exported (Q_DECL_EXPORT, Q_DECL_IMPORT). Currently it does not seem possible to add custom macros into generated headers.
For example, the compiler could be extended with support for adding a macro after the class:
class MY_EXPORT_MACRO SomeClass