summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_qpair.qdoc
blob: 74c7c83605a48690a5c826179c3e9b947470a876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! [0]
QPair<QString, double> pair;
//! [0]


//! [1]
pair.first = "pi";
pair.second = 3.14159265358979323846;
//! [1]


//! [2]
QList<QPair<int, double> > list;
list.append(qMakePair(66, 3.14159));
//! [2]