1,QProgreeDialog:进度条对话框

2,源码:

#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QProgressDialog>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_clicked()
{
    progressDialog.setValue(50);
    progressDialog.show();
}

3,效果:
第4章:QProgreeDialog

相关文章:

  • 2021-08-11
  • 2021-09-06
  • 2021-05-14
  • 2021-10-05
  • 2022-02-03
  • 2021-05-19
  • 2022-12-23
猜你喜欢
  • 2021-09-23
  • 2021-08-03
  • 2022-01-10
  • 2021-07-04
  • 2021-12-04
  • 2021-11-06
  • 2021-04-09
相关资源
相似解决方案