Page 1 of 1

ccProgressDialog

Posted: Fri Jun 25, 2021 2:16 am
by suyufeng
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.

Re: ccProgressDialog

Posted: Sun Jun 27, 2021 9:41 am
by daniel
Maybe because of 'parentWidget'?