ccProgressDialog

For any question about plugins!
Post Reply
suyufeng
Posts: 47
Joined: Wed May 26, 2021 7:04 am

ccProgressDialog

Post 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.
daniel
Site Admin
Posts: 7747
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: ccProgressDialog

Post by daniel »

Maybe because of 'parentWidget'?
Daniel, CloudCompare admin
Post Reply