Qt_Performance_Benchmark/Qt_Performance_Benchmark/mainwindow.cpp

26 lines
403 B
C++
Raw Normal View History

2020-10-09 11:48:56 +02:00
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
2020-10-21 17:02:59 +02:00
void MainWindow::on_horizontalSlider_sliderMoved(int position)
{
ui->progressBar->setValue(100-position);
}
void MainWindow::on_pushButton_clicked()
{
ui->lineEdit->clear();
}