Frage

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

War es hilfreich?

Lösung

Set the parent of ProgressBar to list.

Instead of bar = new QProgressBar();

Use bar = new QProgressBar(list);

That would do.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top