Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_corelib_tools_qscopedpointer.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

Go to the source code of this file.

Classes

class  MyClass
 [4] More...
 
struct  ScopedPointerCustomDeleter
 

Functions

void myFunction (bool useSubClass)
 [0]
 
const QScopedPointer< const QWidgetp (new QWidget())
 
 if (scopedPointer)
 [2]
 
QScopedPointer< MyCustomClass, ScopedPointerCustomDeletercustomPointer (new MyCustomClass)
 

Variables

const QWidget *const p = new QWidget()
 [1]
 
QScopedPointer< int, QScopedPointerArrayDeleter< int > > arrayPointer (new int[42])
 [4]
 
QScopedPointer< int, QScopedPointerPodDeleterpodPointer (reinterpret_cast< int * >(malloc(42)))
 

Function Documentation

◆ customPointer()

QScopedPointer< MyCustomClass, ScopedPointerCustomDeleter > customPointer ( new MyCustomClass)

◆ if()

if ( scopedPointer )

[2]

[3]

Definition at line 59 of file src_corelib_tools_qscopedpointer.cpp.

◆ myFunction()

void myFunction ( bool useSubClass)

[0]

[1]

Definition at line 5 of file src_corelib_tools_qscopedpointer.cpp.

References device, and p.

◆ p()

const QScopedPointer< const QWidget > p ( new QWidget())

Variable Documentation

◆ arrayPointer

QScopedPointer< int, QScopedPointerArrayDeleter< int > > arrayPointer(new int[42]) ( new int [42])

[4]

[5]

◆ p

const QWidget* p = new QWidget()

[1]

[2]

Definition at line 45 of file src_corelib_tools_qscopedpointer.cpp.

Referenced by myFunction().

◆ podPointer

QScopedPointer< int, QScopedPointerPodDeleter > podPointer(reinterpret_cast< int * >(malloc(42))) ( reinterpret_cast< int * > malloc(42))