IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QAbstractFunctor Class

https:// is an abstract base class for all functors.

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QAbstractFunctor Class▲

  • Header: QAbstractFunctor

  • Since: Qt 5.7

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3dcore)

    target_link_libraries(mytarget PRIVATE Qt6::3dcore)

  • qmake: QT += 3dcore

  • Inherited By: https:// and https://

Detailed Description▲

The https:// is used as a base class for all functors and data generators in https:// module.

When user defines a new functor or generator, they need to implement the https://() method, which should be done using the QT3D_FUNCTOR macro in the class definition.

Member Function Documentation▲

 

[virtual] QAbstractFunctor::~QAbstractFunctor()▲

Desctructor

const T *QAbstractFunctor::functor_cast(const Qt3DCore::QAbstractFunctor *other) const▲

This method is used to cast functor other to type T if the other is of type T (or of subclass); otherwise returns 0. This method works similarly to https://, except with functors derived from QAbstractFunctor.

If T was not declared with https:// macro, then the results are undefined.

[pure virtual] qintptr QAbstractFunctor::id() const▲

Returns a pointer to the id of the functor.

Macro Documentation▲

 

QT3D_FUNCTOR(Class)▲

This macro assigns functor id to the Class, which is used by https:// to determine if the cast can be done.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+   

Ce document est disponible sous la licence https:// telle que publiée par la Free Software Foundation.