

| The Following User Says Thank You to d-iivil For This Useful Post: | ||

| The Following User Says Thank You to d-iivil For This Useful Post: | ||

| The Following User Says Thank You to Nathraiben For This Useful Post: | ||

connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(hello()));
defined by "ui(new Ui::MyWindowName)" in the constructorprotected slots:
void hello();
void MainWindow::hello()
{
//Do whatever should be done when pressing the button
}
void MainWindow::hello()
{
QStringList arguments;
arguments << "Enable custom transitions" << "Droid Sans" << "Black";
QProcess::execute("/path/to/my/script/script.sh", arguments);
}
void MainWindow::hello()
{
QStringList arguments;
arguments << "Enable custom transitions" << "Droid Sans" << "Black";
QProcess::execute("/path/to/my/script/script.sh", arguments);
}
connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(hello()));
void MainWindow::hello()
{
QStringList arguments;
arguments << "Enable custom transitions" << "Droid Sans" << "Black";
QProcess::execute("/path/to/my/script/script.sh", arguments);
}
| The Following User Says Thank You to d-iivil For This Useful Post: | ||