Call setText() on the other button object.
Since you are using Designer you likely have two member variables accessible through the ui pointer:
QPushButton *pushButton; // the "CLICK" button object
QPushButton *pushButton2; // the other button object
To copy to clipboard, switch view to plain text mode
then
void MainWindow::on_pushButton_clicked()
{
ui->pushButton2->setText("CLICKED");
}
void MainWindow::on_pushButton_clicked()
{
ui->pushButton2->setText("CLICKED");
}
To copy to clipboard, switch view to plain text mode
Bookmarks