<p>That behavior looks reasonable to me -- the dialog must tell the system to redraw it, but doing that with an unchanged dialog would be waste of time. And obviously one can't change value of an indeterminate progress bar/dialog as it doesn't have any value at all. :-)</p>

<p>Also the case when both minimum and maximum are both set to zero is mentioned in QProgressBar's description and I'm not sure it's really necessary to duplicate that information for QProgressDialog which is built on top of QProgressBar.</p>

<div class="gmail_quote">On Dec 31, 2013 4:51 AM, "John Weeks" <<a href="mailto:john@wavemetrics.com">john@wavemetrics.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">The documentation for QProgressDialog doesn't say anything about it, but it appears that setting both minimum and maximum to zero results in an "indeterminate" progress dialog. The documentation *does* say that if you make it a modal dialog, then calling QProgressDialog::setValue() will call processEvents(). But the code seems to check to see if progress has been made; by experiment I find that for an indeterminate QProgressDialog, it is necessary for my code to call processEvents().<div>
<br></div><div>This suggests that QProgressDialog wasn't actually designed to display an indeterminate progress bar- maybe it is an accident?</div><div><br></div><div>Am I going to find some ugly surprise using it this way? (I mean other than having to call processEvents() myself.) If it is designed to work this way, perhaps a change to the documentation is in order.</div>
<div><br><div><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Geneva;word-spacing:0px"><div style="word-wrap:break-word">
<div>-John Weeks</div></div></span></span>
</div>
<br></div></div></div><br>_______________________________________________<br>
Interest mailing list<br>
<a href="mailto:Interest@qt-project.org">Interest@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/interest" target="_blank">http://lists.qt-project.org/mailman/listinfo/interest</a><br>
<br></blockquote></div>