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

how to update ( setvalue , sorting , editing , background color ) QProgressBar (QitemDelegate) inside QTableview (QAbstractTableModel)

I am a NEWBIE dev on python , this is my first python script . I added a QProgressBar to QTableview (QAbstractTableModel) as a QItemDelegate and it works. QProgressBar did show up , but it cant update automatically when i edit or sort the…
0
votes
1 answer

QProgressBar makes an application consume much memory

For days, maybe weeks, I have been looking for a memory leak in my application. I didn´t find where it can be until I found this: https://bugs.kde.org/show_bug.cgi?id=292217 After checking everything, I discover that QProgressBar takes too much…
0
votes
0 answers

simplest possible multifile download manager in qtreeview?

Im trying to make a download manager that can download multible files and shows them in a qtreeview. Each item in qtreeview should show a filename, progressbar and status text of "Finished" after successfull download. What is the most simplest and…
user2753972
  • 21
  • 1
  • 3
0
votes
1 answer

QProgressBar with QTableWidget stretched

I'm trying to stretch QProgressBar to fill with QTableWidgetItem, I have not found any solution about this, do anyone know how? Thanks! ... ui->tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch); ... QProgressBar *bar = new…
user2399415
  • 207
  • 2
  • 3
  • 8
0
votes
0 answers

What is the proper way to separate the view layer from the logic layer in QT?

My mainwindow have a side GUI with a QGraphicsView in the center, there is a logic class which make different calculations which triggered by the GUI and effects the QGraphicsView. Some of the calculations are heavy which make the GUI go to sleep,…
GoldenAxe
  • 838
  • 3
  • 9
  • 26
0
votes
2 answers

Launch window, process data, and close it without user interaction?

When the program first boots up, sometimes updating components will be required. The updating task should happen automatically, without any user interaction. I want to show a simple window that will show the progress. When it'll be done, the window…
iTayb
  • 12,373
  • 24
  • 81
  • 135
0
votes
1 answer

Qt QtConcurrent progressbar update

I have a QTableView connected to a QAbstractTableModel. The model is used with QtConcurrent::map to make threads for the application (copying files) I subclassed QStyledItemDelegate to display a QStyleOptionProgressBar in one of the tableviews…
0
votes
2 answers

How to update QProgressBar on QWizard multithreaded?

I have a QWizard subclass that for some pages, it will take a long time calling a method, so I want to put in a QProgressBar. My first thought is I created a QTimer and setup a method to gets called to updateProgressBar, but it seems that this runs…
CptanPanic
  • 609
  • 8
  • 22
-1
votes
1 answer

How to create legend in progress bar?

how to make number follow the bar size? in this qt designer, i create frame which contain bar, and qlabel =500\n\n250\n\n0\n\n-250\n\n-500 Is there a way to create legend in this bar? or can we make qlabel follow the size of bar?' Progressbar in…
M.F.J
  • 9
-1
votes
1 answer

PyQt5: single QProgressBar with multiprocessing gets stuck

I have a very long list to deal with, so I use multiprocessing to speed up the process. Now I want to show the progress in a PyQt5.QtWidgets.QProgressBar. This is the code: import sys from PyQt5.QtWidgets import * import multiprocessing as mp import…
-1
votes
1 answer

PyQt5 QProgressBar Does Not Appear when run in QThread

This question was deleted, but I updated the code to an MRE. I have run it on my terminal and it does not have any compilation/runtime errors, but behaves as I explain below. Since the moderators have not responded to my original request to reopen…
adam.hendry
  • 4,458
  • 5
  • 24
  • 51
-1
votes
1 answer

Design of windows 10 battery charging inspired progress bar using pyside

Need help to develop a progress bar in pyside like what we see in windows 10. while charging it has to show the progress bar along with the plug symbol. After full charge the progress bar should be like below Already I developed the code for…
-2
votes
1 answer

Qt access viewer object in every class?

I have a progress bar object (ui->QprogressBar) available in my mainwindow.cpp. But, I want to use this object in another class (readerfile.cpp). Headers mainwindow.h demo.h Sources mainwindow.cpp demo.cpp I use this method to call object most of…
Amar Kumar
  • 45
  • 10
-3
votes
1 answer

Delegate is not displayed properly in the QTableView

I am trying to implement a sample code listed in the PySide2 documentation. https://doc.qt.io/qtforpython-5.12/PySide2/QtWidgets/QAbstractItemDelegate.html#PySide2.QtWidgets.QAbstractItemDelegate import sys import os from PySide2.QtWidgets import…
-3
votes
1 answer

connect QProcess with QProgressbar

i have this code but it is not working.i am trying to update progressbar while my video is converting.video conversion is fine but progessbar is not updating void MainWindow::on_pushButton_clicked() { QString alienpath="ffmpeg"; QStringList…
suraj kiran
  • 49
  • 1
  • 1
  • 9
1 2 3
10
11