Hello.
Please help me with QProgressbar.
Running script bash QProcess and output performance QProgressbar.
#include "widget.h"
#include "ui_widget.h"
#include <QProcess>
#include <QProgressBar>
ui(new Ui::Widget)
{
ui->setupUi(this);
}
Widget::~Widget()
{
delete ui;
}
void Widget::on_pushButton_2_clicked()
{
process.startDetached("/bin/bash /opt/tall/ttings.sh");
}
void Widget::on_progressBar_valueChanged(int value)
{
}
#include "widget.h"
#include "ui_widget.h"
#include <QProcess>
#include <QProgressBar>
Widget::Widget(QWidget *parent) :
QWidget(parent),
ui(new Ui::Widget)
{
ui->setupUi(this);
}
Widget::~Widget()
{
delete ui;
}
void Widget::on_pushButton_2_clicked()
{
QProcess process(this);
process.startDetached("/bin/bash /opt/tall/ttings.sh");
}
void Widget::on_progressBar_valueChanged(int value)
{
}
To copy to clipboard, switch view to plain text mode
I'm quite newbie to qt.
If possible. Sample code.
Bookmarks