QScopedPointer<ccProgressDialog> pDlg(nullptr);
if (parameters.parentWidget)
{
pDlg.reset(new ccProgressDialog(true, parameters.parentWidget)); //cancel available
pDlg->setMethodTitle(QObject::tr("Save LAS file"));
pDlg->setInfo(QObject::tr("Points: %L1").arg(numberOfPoints));
pDlg->start();
}
This is yours.
QWidget wid;
QScopedPointer<ccProgressDialog> pDlg(nullptr);
pDlg.reset(new ccProgressDialog(true, wid)); //cancel available
pDlg->setMethodTitle(QObject::tr("Save LAS file"));
pDlg->setInfo(QObject::tr("Points: %L1").arg("123456"));
pDlg->start();
This is mine.
I wanted to add a progress bar to my plugin, I noticed the progress bar feature in your plugin qPDALIO, and I tried to use it, but I failed.