Function Documentation▲
auto qConstOverload(T memberFunctionPointer)▲
Returns the memberFunctionPointer pointer to a constant member function:
    struct Foo {
        void overloadedFunction(int, const QString &);
        void overloadedFunction(int, const QString &) const;
    };
    ... qConstOverload<int, const QString &>(&Foo::overloadedFunction)
    ... qNonConstOverload<int, const QString &>(&Foo::overloadedFunction)See Also▲
auto qNonConstOverload(T memberFunctionPointer)▲
Returns the memberFunctionPointer pointer to a non-constant member function:
    struct Foo {
        void overloadedFunction(int, const QString &);
        void overloadedFunction(int, const QString &) const;
    };
    ... qConstOverload<int, const QString &>(&Foo::overloadedFunction)
    ... qNonConstOverload<int, const QString &>(&Foo::overloadedFunction)See Also▲
See also qOverload, qNonConstOverload, Differences between String-Based and Functor-Based Connections
auto qOverload(T functionPointer)▲
Returns a pointer to an overloaded function. The template parameter is the list of the argument types of the function. functionPointer is the pointer to the (member) function:
    struct Foo {
        void overloadedFunction();
        void overloadedFunction(int, const QString &);
    };
    ... qOverload<>(&Foo::overloadedFunction)
    ... qOverload<int, const QString &>(&Foo::overloadedFunction)If a member function is also const-overloaded qConstOverload and qNonConstOverload need to be used.




