プログラムでいくつかの大きな 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
}
アップロード部分の実行中に待機サインまたは記号を表示する場所と方法を教えてください。
ありがとう