How do I make the taskbar show my progress bar in PyQt4?

感情迁移 提交于 2019-12-04 11:12:39

Yes, you'll want to setup your QProgressBar (not QProgressBarDialog) and insert into QStatusBar (or QMainWindow.statusBar()) with the insertWidget(), then use removeWidget to remove it when you're done with it.

in PyQT5 you must use addWidget()

class ExampleApp(QtWidgets.QMainWindow, mainwindow_test.Ui_MainWindow):
def __init__(self):
    super().__init__()
    self.statusbar.addWidget(self.progressBar)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!