Questions tagged [qprogressbar]

QProgressBar is a Qt class that provides a progress bar, which can be either horizontal or vertical.

The QProgressBar uses steps to show the progress. To use it, the minimum and maximum values should be specified. After that, when the progress bar receives a current step value, it will update itself to show the percentage of steps completed.

If both values are set to 0, the progress bar will turn into a "busy" indicator. An example of this is the following:

QProgressBar * b = new QProgressBar();
b->setMinimum(0);
b->setMaximum(0);
b->show();

Official documentation can be found here.

152 questions
0
votes
1 answer

Making custom QProgressBar

I'm getting the undefined reference to vtable for CustomProgressBar' error when trying to launch following code: customprogressbar.h #ifndef CUSTOMPROGRESSBAR_H #define CUSTOMPROGRESSBAR_H #include #include "task.h" class…
Chechen Itza
  • 111
  • 8
0
votes
1 answer

Improve performance custom progress bar animation

I am looking to have a customized progress bar whose progress changes via a custom animation. I will have quite a number of instances of this widget and all of them should run smoothly and fast. My first attempt was to use a regular QProgressBar,…
IceFire
  • 4,016
  • 2
  • 31
  • 51
0
votes
2 answers

QProgressBar causing bad performance in QT5?

I'm developping a program which parses a file (365000 lines) in which I try to match some keywords after reading each line. This computation along with the update of my QProgressBar are made in another thread using QThread. Everything works fine…
Trunks10
  • 23
  • 9
0
votes
1 answer

QObject::connect: No such signal progressbarV::keyReleaseEvent()

I am trying to create a project in which I have a progressbarV class which creates a QProgressBar. I am calling this class in my mainWindow. My aim is to navigate to another screen when I click on the progressbar. I tried to implement KeyRleaseEvent…
Sam
  • 113
  • 5
  • 13
0
votes
2 answers

How to get a QProgressBar in QT with rounded edges and rounded progress edges?

I have created a vertical progress bar and an trying to style it with rounded edges. No matter what I do, I don't seem to be able to get the progress or chunk of the progress bar (QProgressBar::chunk) with rounded edges. Please help me out, I am new…
Sam
  • 113
  • 5
  • 13
0
votes
1 answer

How to add and show the contents of a widget onto another widget in QT?

I have created a class horrizontalprogressbar in which i created a simple progressbar. I have another class called mainwindow and I would like to access and display the contents of horrizontalprogressbar on mainwindow. I tried a lot off things here,…
Sam
  • 113
  • 5
  • 13
0
votes
1 answer

QProgressbar with 2 Labels with differend alignment

When a Client connects to my application a new QProgressbar will show and display his set name and display some more information. This works fine. But based on the length of the name it doesn't look perfect if multiple people connect. And it is…
Ingo Holder
  • 37
  • 1
  • 5
0
votes
2 answers

How can I use a QProgressDialog as a simple wait dialog without QProgressBar?

There is an operation in my application that can take up-to few minutes to finish. I wish to show a simple dialog box which opens when the operation begins, displays a simple wait message like 'Operation in progress..' and closes automatically when…
Nishant Kumar
  • 363
  • 4
  • 20
0
votes
1 answer

progress bar within a table in pyqt4

How could I use PyQt to add a progress bar as a cell in my TableView? For example, suppose I have a table that holds several running tasks and I would like one of the cells in each row to show the percentage of the completed task. Here is a quick…
0
votes
2 answers

Style QProgressBar when the value is 16

It is possible to style the QProgressBar using only QSS when the value is 16 example? ui->progresso->setValue(16); Using a QSS like this: QProgressBar { //Default QSS ... } QProgressBar:value(16) { background-color: #fc0; } My goal…
Protomen
  • 9,471
  • 9
  • 57
  • 124
0
votes
0 answers

Create and update a QprogressBar

I'm developing an app which is mainly a file browser. I need to create a Progress Indication when deleting files to show the progress to the user. I have created one, but it's ugly and not working as expected. Below is the look of Progress this is…
Seb
  • 2,929
  • 4
  • 30
  • 73
0
votes
1 answer

Unable to display QDialog/QProgressbar

I have design an app is C++/Qt to transfer file between my Mac to Android Device. to do this, I have created a class QDialog as shown below: dialog.cpp Dialog::Dialog(QWidget *parent) : QWidget(parent) { } void Dialog::CreateProgressBar() { …
Seb
  • 2,929
  • 4
  • 30
  • 73
0
votes
2 answers

How to make the value of QProgressBar start from 0?

In the function - loadData(), First, show the dialog with QProgressBar,and then, call setValue() for the progressbar base on the business. when the value of progressbar increase to 100%, hide the dialog and set the value to 0. My question is: When…
zack chen
  • 137
  • 1
  • 1
  • 10
0
votes
2 answers

Update QProgressBar from multiple QThreads

I found several tutorials online explaining how to update a QProgressBar during some long calculation. One of them is: use a QThread to do the calculation, then emit a signal that is connected to progressBar.setValue(int). I thought this must also…
Bianfable
  • 237
  • 5
  • 13
0
votes
1 answer

Change QProgressbar background and chunk image programatically

I need to change the background and chunk image of a QProgressBar element programatically. I already know that I can achieve this by applying a StyleSheet with a given image url during runtime. The problem in my case is that I can't use local files…
tobmuell
  • 1
  • 1