Since it is a custom widget it is defined as:
class QDESIGNER_WIDGET_EXPORT LProfGauge
: public QWidget
class QDESIGNER_WIDGET_EXPORT LProfGauge : public QWidget
To copy to clipboard, switch view to plain text mode
To test this I changed it to:
class LProfGauge : public QWidget
To copy to clipboard, switch view to plain text mode
and it got passed that error. It looks like the compile now works and I am having issues with the linker not finding the Qt libraries which should not be too hard to sort out.
But I would still like to understand what is going on with this. Do I need to define something for the Windows build so that QDESIGNER_WIDGET_EXPORT does not cause a problem on Windows? All of my other widgets predated Qt4 and were ported to Qt4 and these do not have QDESIGNER_WIDGET_EXPORT. But this particular widget was derived from another source and it had QDESIGNER_WIDGET_EXPORT in the declaration for the widget and I left it in since it seemed to work and did not cause any issues on Linux.
Bookmarks