Show TOC Welcome to the QLIB 1.0 Online Reference
QLIB 

QProgress Examples

The code below creates four different progress bars. From left to right: normal bar, reverse-direction bar, rising and falling bar. In this example all controls share the same resource.
 
// Create imagelist
SEGS = new QImageList(10, 10, "img/qlib/pro0.gif", "img/qlib/pro1.gif");

// Create bars
bar1 = new QProgress(null, "bar1", SEGS);
bar2 = new QProgress(null, "bar2", SEGS, 15, QProgress.REVERSE);
bar3 = new QProgress(null, "bar3", SEGS, 6, QProgress.RISE);
bar4 = new QProgress(null, "bar4", SEGS, 6, QProgress.FALL);