Skip to content

Instantly share code, notes, and snippets.

@yamato8
Created December 28, 2013 18:58
Show Gist options
  • Save yamato8/8162874 to your computer and use it in GitHub Desktop.
Save yamato8/8162874 to your computer and use it in GitHub Desktop.
ボタンがクリックされた時の処理:Qt
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDebug>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_pushButton_clicked()
{
qDebug() << "ボタンがクリックされた。" ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment