Qt Code:
  1. stat = new QStatusBar( this );
  2.  
  3. barStatus = new QLabel ( tr ("Ready" ), stat );
  4.  
  5. bar = new QProgressBar( stat );
  6. bar->setOrientation( Qt::Horizontal );
  7. bar->setAlignment( Qt::AlignAbsolute );
  8. bar->setFixedWidth( 175 );
  9.  
  10. stat->addWidget( barStatus, 1 );
  11. stat->addPermanentWidget( bar );
  12. stat->setSizePolicy( QSizePolicy::Ignored, QSizePolicy::Minimum );
To copy to clipboard, switch view to plain text mode