23 #include <QProgressBar>    26   : QDialog( parent, fl )
    27   , mMessage( QString( message ) )
    30   setWindowTitle( tr( 
"QGIS" ) );
    31   setLayout( 
new QVBoxLayout() );
    32   setWindowModality( Qt::WindowModal );
    33   setMinimumWidth( 250 );
    34   mMsgLabel = 
new QLabel( mMessage );
    35   layout()->addWidget( mMsgLabel );
    37   QProgressBar *pb = 
new QProgressBar();
    39   layout()->addWidget( pb );
    41   if ( mMessage.isEmpty() )
    49   if ( !message.isEmpty() )
    51     mMessage = QString( message );
    52     mMsgLabel->setText( mMessage );
 
void setMessage(const QString &message)
 
QgsBusyIndicatorDialog(const QString &message=QString(), QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)
Constructor Modal busy indicator dialog with no buttons.