Question

as stand in the OP title, is there any chance to get an indeterminate QProgressBar indide a QListWidget?

    bar = new QProgressBar();   
    bar->setMinimum(0);
    bar->setMaximum(0);
    QListWidgetItem *item = new QListWidgetItem ;
    list->setItemWidget(item, bar);
    list->setCurrentRow(0);

that's what I tried but it displays nothing? Any hint?

thank you:

EDIT: I need to wait results from a long term procedure and I want to show the results inside the QListWidget

Was it helpful?

Solution

Set the parent of ProgressBar to list.

Instead of bar = new QProgressBar();

Use bar = new QProgressBar(list);

That would do.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top