目前还没有发现很好的调试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_quitButton_clicked()
{
    qDebug()<<"将要退出应用程序!";
    qApp->quit();
}

 

相关文章:

  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-02-28
  • 2021-07-08
  • 2022-01-13
猜你喜欢
  • 2021-08-30
  • 2021-09-30
  • 2021-11-20
  • 2021-11-17
  • 2021-09-14
  • 2021-06-29
  • 2022-12-23
相关资源
相似解决方案