QPushButton *quitButton = new QPushButton("&Quit");

Why add a & to the Quit? Removing & and it seems the code behaves the same.

Edit
Report