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

Functions

template<typename T , typename ... Args>
QQmlRefPointer< T > makeRefPointer (Args &&... args)
 

Function Documentation

◆ makeRefPointer()

template<typename T , typename ... Args>
QQmlRefPointer< T > QQml::makeRefPointer ( Args &&...  args)

Creates a QQmlRefPointer which takes ownership of a newly constructed T. T must derive from QQmlRefCounted<T> (as we rely on an initial refcount of 1). T will be constructed by forwarding args to its constructor.

Definition at line 108 of file qqmlrefcount_p.h.

References args.