Hi all. I am using QT meta object system for my app-specific interfaces like this:
class MyInterface {
// interface description here
}
Q_DECLARE_INTERFACE(MyInterface, "com.my-org.MyInterface/1.0")
class MyInterfaceImplementor
: public QObject,
public MyInterface
{ Q_OBJECT
Q_INTERFACES(MyInterface)
// MyInterface implementation
}
auto pInstance = new MyInterfaceImplementor();
class MyInterface {
// interface description here
}
Q_DECLARE_INTERFACE(MyInterface, "com.my-org.MyInterface/1.0")
class MyInterfaceImplementor: public QObject, public MyInterface {
Q_OBJECT
Q_INTERFACES(MyInterface)
// MyInterface implementation
}
auto pInstance = new MyInterfaceImplementor();
To copy to clipboard, switch view to plain text mode
So, my pInstance have an metaObject(). How can i query this metaObject() for query list of interfaces, implemented on it? All interfaces have been registered using Q_DECLARE_INTERFACE.
Bookmarks