qpushbutton documentation code example Example: qpushbutton QPushButton *button = new QPushButton("Text", this);