#include "touchtestwindow.h" #include "ui_touchtestwindow.h" TouchTestWindow::TouchTestWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::TouchTestWindow) { ui->setupUi(this); setAttribute(Qt::WA_DeleteOnClose); } TouchTestWindow::~TouchTestWindow() { delete ui; } void TouchTestWindow::on_clearButton_clicked() { ui->canvas->clearImage(); } void TouchTestWindow::on_closeButton_clicked() { close(); }