美文网首页
QProgressDialog

QProgressDialog

作者: NullUser | 来源:发表于2022-05-12 14:11 被阅读0次

    Qt进度条实例

    QProgressDialog progress("doing things......","cancel", 0, finalNum, this);
    progress.setWindowModality(Qt::WindowModal);
    for(int i = 0; i < finalNum; i++)
    {
      progress.setValue(i);
      if(progress.wasCanceled())
      {
        break;
      }
      //do things
    }
    progress.setValue(finalNum);
    

    相关文章

      网友评论

          本文标题:QProgressDialog

          本文链接:https://www.haomeiwen.com/subject/vkgsurtx.html