Есть main.cpp:
#include <QtCore>
#include <QtGui>
int main(int argc, char* argv[]) {
QApplication app(argc, argv);
QDialog *dialog = new QDialog;
dialog->resize(320, 240);
QPushButton *button = new QPushButton("Press me", dialog);
button->move(100, 100);
dialog->show();
return app.exec();
}
как сделать для кнопки (button) действие click? чтобы открывался типа файл test.sh. Или архив ...