2011-07-28 46 views
3

我正在使用PyQt4在我的应用程序中显示进度条,但我希望它也能在任务栏上看到,就像许多程序(如winRAR和Google Chrome一样)。有没有办法做到这一点?如何让任务栏在PyQt4中显示我的进度条?

+0

相关:[如何显示进度在Windows 7任务栏(使用Qt)?](http://stackoverflow.com/questions/4349502/how-to-show-progress-in-windows-7-taskbar-using -qt)和[Qt:Windows 7任务栏扩展支持的当前状态是什么?](http://stackoverflow.com/questions/1518620/qt-what-is-the-current-status-of-windows-7 -taskbar的扩展支持)。特别是,看到[这个答案](http://stackoverflow.com/questions/1518620/qt-what-is-the-current-status-of-windows-7-taskbar-extensions-support/3694401#3694401)。 –

回答

3

是的,您需要设置您的QProgressBar(而不是QProgressBarDialog),并使用insertWidget()插入QStatusBar(或QMainWindow.statusBar()),然后使用removeWidget在完成后将其删除。

相关问题