ПК
qt_metacall
- он же [2]Size: a a a
ПК
qt_metacall
- он же [2]ПК
AS
QML_INTERFACE
This macro registers the enclosing C++ type in the QML system as an interface.
Types registered as an interface in QML should also declare themselves as an interface with the meta object system. For example:
struct FooInterface
{
QML_INTERFACE
public:
virtual ~FooInterface();
virtual void doSomething() = 0;
};
Q_DECLARE_INTERFACE(FooInterface, "org.foo.FooInterface")
When registered with QML in this way, they can be used as property types:
Q_PROPERTY(FooInterface *foo READ foo WRITE setFoo)
When you assign a QObject sub-class to this property, the QML engine does the interface cast to FooInterface* automatically.
AS
ПК
QML_INTERFACE
This macro registers the enclosing C++ type in the QML system as an interface.
Types registered as an interface in QML should also declare themselves as an interface with the meta object system. For example:
struct FooInterface
{
QML_INTERFACE
public:
virtual ~FooInterface();
virtual void doSomething() = 0;
};
Q_DECLARE_INTERFACE(FooInterface, "org.foo.FooInterface")
When registered with QML in this way, they can be used as property types:
Q_PROPERTY(FooInterface *foo READ foo WRITE setFoo)
When you assign a QObject sub-class to this property, the QML engine does the interface cast to FooInterface* automatically.
AS
ПК
ПК
AS
AS
ПК
ПК
AS
AS
struct FooInterface
{
QML_INTERFACE
public:
virtual ~FooInterface();
virtual void doSomething() = 0;
};
AS
AS
AS
AS
AS
AS