![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Functions | |
template<typename To, typename From, typename std::enable_if_t<!std::is_pointer_v< To >, int > = 0> | |
static auto | getQQmlJSScopeFromSmartPtr (const From &p) -> From |
|
static |
Utility method that returns proper value according to the type To. This version returns From.
Utility method that returns proper value according to the type To. This version returns From::get(), which is a raw pointer. The returned type is not necessarily equal to To (e.g. To might be QQmlJSScope * while returned is const QQmlJSScope *).
Definition at line 48 of file qqmljsutils_p.h.