Hi there
ive got a a problem consist of using moc in visual studio (msvc) thing looks like that:
ABI/
Plugin.cpp
Plugin.h
Terminal/
Terminal.cpp
Terminal.h
Plugin.h contains:
#include <QObject>
{
Q_OBJECT
public:
Plugin();
virtual void foo() = 0;
}
Q_DECLARE_INTERFACE(VirtualPlugin,"qsecurity.VirtualPlugin")
#include <QObject>
class Plugin : public QObject
{
Q_OBJECT
public:
Plugin();
virtual void foo() = 0;
}
Q_DECLARE_INTERFACE(VirtualPlugin,"qsecurity.VirtualPlugin")
To copy to clipboard, switch view to plain text mode
and Terminal.h:
#include <Plugin.h>
class Terminal : public Plugin
{
Q_OBJECT
Q_INTERFACES(Plugin)
public:
Terminal();
void foo();
}
#include <Plugin.h>
class Terminal : public Plugin
{
Q_OBJECT
Q_INTERFACES(Plugin)
public:
Terminal();
void foo();
}
To copy to clipboard, switch view to plain text mode
so in msvc i added the path to include directory ../ABI
for Terminal, files in ABI/ and Terminal/ are moc'ed.
Files that are part of ABI and are included #include <Plugin.h> doesnt get moc'ed
compiling Terminl i get error: undefined interface ive tried to add this files to Terminal project via menu "add" -> "existing item" and this got into generated files but i still get this error while build any suggestions?
on any other platform linux,macos using qmake it works fine
Bookmarks