summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_objecttrees.qdoc
blob: 216027f2792b247e45a414fdf5e3ac47c1a4b2d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//![0]
int main()
{
    QWidget window;
    QPushButton quit("Quit", &window);
    ...
}
//![0]


//![1]
int main()
{
    QPushButton quit("Quit");
    QWidget window;

    quit.setParent(&window);
    ...
}
//![1]