Advertisement
Max13

Qt Empty

Jul 1st, 2011
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1.             // Loading Win
  2.             this->tmpWin = new QWidget;
  3.             QVBoxLayout * vLayout = new QVBoxLayout;
  4.             QLabel * txtLabel = new QLabel;
  5.             QProgressBar * pBar = new QProgressBar;
  6.  
  7.             if (encrypted)
  8.                 txtLabel->setText("[ "+QFileInfo(fileName).fileName()+" ]\n<strong>"+tr("Decrypting...")+"</strong>");
  9.             else
  10.                 txtLabel->setText("[ "+QFileInfo(fileName).fileName()+" ]\n<strong>"+tr("Encrypting...")+"</strong>");
  11.  
  12.             pBar->setRange(0, 0);
  13.             pBar->setFixedWidth(400);
  14.             vLayout->addWidget(txtLabel, 0, Qt::AlignHCenter);
  15.             vLayout->addWidget(pBar, 0, Qt::AlignHCenter);
  16.  
  17.             this->tmpWin->setWindowFlags(Qt::SplashScreen);
  18.             this->tmpWin->setLayout(vLayout);
  19.             this->tmpWin->show();
  20.             // ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement