//![0]
int main()
{
    QWidget window;
    QPushButton quit("Quit", &window);
    ...
}
//![0]


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

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