Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
detail Namespace Reference

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
 

Function Documentation

◆ getQQmlJSScopeFromSmartPtr()

template<typename To , typename From , typename std::enable_if_t<!std::is_pointer_v< To >, int > = 0>
static auto detail::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 44 of file qqmljsutils_p.h.