CContextButton* button = new CContextButton(QIcon(":/images/save.png"), "Save"); connect(button, &CContextButton::clicked, this, &MyWidget::save); menu->addContextButton(button);In this example, a new context button is created with an icon and text label. When the button is clicked, the `save` slot of the `MyWidget` object is called. The button is then added to a context menu. Package library: Qt