It works for me in Qt 4.5.1's QProgressBar.

Just set progressBar.setMinimum(0); progressBar.setMaximum(0); in the designer works for me. The progressBar.value would be -1 automatically in designer.

Hope this helps.