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_qhash.cpp File Reference

(4e367fa17bca5ec9cc7456f9ce2a81466b34027f)

Go to the source code of this file.

Macros

#define EMPLOYEE_H
 

Functions

hash insert ("twelve", 12)
 [1]
 
 if (hash.contains("TIMEOUT")) timeout
 
 for (int i=0;i< 1000;++i)
 
QHashIterator< QString, int > i (hash)
 [6]
 
 while (i.hasNext())
 

Variables

QHash< QString, int > hash = 1
 [0]
 
int num1 = hash["thirteen"]
 [2]
 
int num2 = hash.value("thirteen")
 
int timeout = 30
 [3]
 

Macro Definition Documentation

◆ EMPLOYEE_H

#define EMPLOYEE_H

Function Documentation

◆ for()

for ( )

Definition at line 43 of file src_corelib_tools_qhash.cpp.

References hash, and i.

◆ i()

QHashIterator< QString, int > i ( hash )

[6]

[7]

◆ if()

if ( hash. contains"TIMEOUT")

◆ insert()

hash insert ( "twelve" ,
12  )

[1]

[2]

◆ while()

while ( i. hasNext())

Definition at line 52 of file src_corelib_tools_qhash.cpp.

References i, and qPrintable.

Variable Documentation

◆ hash

QHash<int, QWidget *> hash = 1

[0]

[5]

[1]

[6]

Definition at line 5 of file src_corelib_tools_qhash.cpp.

Referenced by for().

◆ num1

int num1 = hash["thirteen"]

[2]

[3]

Definition at line 22 of file src_corelib_tools_qhash.cpp.

◆ num2

int num2 = hash.value("thirteen")

Definition at line 23 of file src_corelib_tools_qhash.cpp.

◆ timeout

int timeout = 30

[3]

[4]

[5]

Definition at line 28 of file src_corelib_tools_qhash.cpp.