Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QWinRegistryKey Class Reference

#include <qwinregistry_p.h>

+ Collaboration diagram for QWinRegistryKey:

Public Member Functions

 QWinRegistryKey ()
 
 QWinRegistryKey (HKEY parentHandle, QStringView subKey, REGSAM permissions=KEY_READ, REGSAM access=0)
 
 ~QWinRegistryKey ()
 
 QWinRegistryKey (QWinRegistryKey &&other) noexcept
 
void swap (QWinRegistryKey &other) noexcept
 
bool isValid () const
 
HKEY handle () const
 
 operator HKEY () const
 
void close ()
 
QVariant value (QStringView subKey) const
 
template<typename T>
std::optional< T > value (QStringView subKey) const
 
QString stringValue (QStringView subKey) const
 

Detailed Description

Definition at line 26 of file qwinregistry_p.h.

Constructor & Destructor Documentation

◆ QWinRegistryKey() [1/3]

QT_BEGIN_NAMESPACE QWinRegistryKey::QWinRegistryKey ( )

Definition at line 11 of file qwinregistry.cpp.

◆ QWinRegistryKey() [2/3]

QWinRegistryKey::QWinRegistryKey ( HKEY parentHandle,
QStringView subKey,
REGSAM permissions = KEY_READ,
REGSAM access = 0 )
explicit

Definition at line 17 of file qwinregistry.cpp.

◆ ~QWinRegistryKey()

QWinRegistryKey::~QWinRegistryKey ( )

Definition at line 26 of file qwinregistry.cpp.

◆ QWinRegistryKey() [3/3]

QWinRegistryKey::QWinRegistryKey ( QWinRegistryKey && other)
inlinenoexcept

Definition at line 36 of file qwinregistry_p.h.

Member Function Documentation

◆ close()

void QWinRegistryKey::close ( )

Definition at line 31 of file qwinregistry.cpp.

◆ handle()

HKEY QWinRegistryKey::handle ( ) const
inlinenodiscard

Definition at line 43 of file qwinregistry_p.h.

◆ isValid()

bool QWinRegistryKey::isValid ( ) const
inlinenodiscard

Definition at line 41 of file qwinregistry_p.h.

◆ operator HKEY()

QWinRegistryKey::operator HKEY ( ) const
inline

Definition at line 45 of file qwinregistry_p.h.

◆ stringValue()

QString QWinRegistryKey::stringValue ( QStringView subKey) const

Definition at line 127 of file qwinregistry.cpp.

◆ swap()

void QWinRegistryKey::swap ( QWinRegistryKey & other)
inlinenoexcept

Definition at line 39 of file qwinregistry_p.h.

◆ value() [1/2]

QVariant QWinRegistryKey::value ( QStringView subKey) const
nodiscard

Definition at line 39 of file qwinregistry.cpp.

◆ value() [2/2]

template<typename T>
std::optional< T > QWinRegistryKey::value ( QStringView subKey) const
inlinenodiscard

Definition at line 51 of file qwinregistry_p.h.


The documentation for this class was generated from the following files: