PySide Progress Bar

201 views
Skip to first unread message

md

unread,
Jul 30, 2014, 3:04:25 PM7/30/14
to python_in...@googlegroups.com
Does anyone know if there is a way to display text within the PySide progressbar ? Right now its displaying a percentage for me. I'd love to show what it is actually doing as well.

THanks

Justin Israel

unread,
Jul 30, 2014, 4:07:45 PM7/30/14
to python_in...@googlegroups.com

QProgressBar has a virtual text() method that you could implement and return custom text:
http://qt-project.org/doc/qt-4.8/qprogressbar.html#text-prop

I am usually using either a QProgressDialog that supports extra text, or displaying my text in a surrounding QLabel to a QProgressBar, but this is a way you could get the center text to be custom. Just have to be aware of how much width you have available if the progress bar can be small.

On 31/07/2014 7:04 AM, "md" <acco...@mdonovan.com> wrote:
Does anyone know if there is a way to display text within the PySide progressbar ? Right now its displaying a percentage for me. I'd love to show what it is actually doing as well.

THanks

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/7acabeef-4e3e-4fb6-8bf3-6a0aba7d6470%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages