2

プログラムでいくつかの大きな Dicom ファイルを選択してロードしています。読み込みプロセス全体に時間がかかります (ファイルの数によって異なりますが、ファイルが多い場合、プロセス全体に数分以上かかる場合があります)。ファイルのアップロード中に「待機中のシンボル」などを表示したい。調べてみましたが、はっきりしたものはありませんでした。

選択部分とアップロード部分の私のコードは次のとおりです。

void MainWindow::showTheSelectedList()
{
    QFileDialog * fileDialog = new QFileDialog(this);

    fileDialog->setFileMode(QFileDialog::ExistingFiles);
    QListView* list = fileDialog->findChild<QListView*>("listView");
    if(list)
    {
        list->setSelectionMode(QAbstractItemView::MultiSelection);
    }
    QTreeView* tree = fileDialog->findChild<QTreeView*>();
    if(tree)
    {
        tree->setSelectionMode(QAbstractItemView::MultiSelection);
    }
    if(fileDialog->exec())
    {
        if(fileDialog->selectedFiles().size()>0)
        {

            int listsize=stringList.size();
            for(int i=0;i<listsize;i++)
            {
      //          get the name of the file
        //        check if the file is dicom
          //      upload if the file is dicom
            //    after uploading, get the pixel data of that file
              //  use the pixel data and make a icon out of it
                //then insert the icon in an a QTablewView
            }
        }
    }
    //show the QtableView
}

アップロード部分の実行中に待機サインまたは記号を表示する場所と方法を教えてください。

ありがとう

4

2 に答える 2

1

ダイアログボックス:

私の初心者の提案は、 for ループ内で進行状況バーを使用し、各ファイルの読み込みが完了するたびに進行状況バーをインクリメントすることです。

詳細が必要な場合はお知らせください。

于 2013-12-30T21:10:03.630 に答える