문제

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

도움이 되었습니까?

해결책

Set the parent of ProgressBar to list.

Instead of bar = new QProgressBar();

Use bar = new QProgressBar(list);

That would do.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top