I want to create an object function that changes the color of a certain pushbutton. I would like to give an ui->pushbutton to it.
So I would be calling the function with something like this:
changeButtonColor(ui->pushbutton);
How do I need to write the function?
void MainWindow::changeButtonColor(ui->pushbutton)
{
}