Guest User

Untitled

a guest
Oct 18th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.97 KB | None | 0 0
  1. void Homepage::login_utente(){
  2.     hideAll();
  3.     setFixedSize(600,400);
  4.     setAutoFillBackground(true);
  5.     QPalette pal = this->palette();
  6.     pal.setColor(QPalette::Window, Qt::white);
  7.     this->setPalette(pal);
  8.     setWindowTitle("Login Utente");
  9.     QHBoxLayout* loglayout=new QHBoxLayout;
  10.  
  11.     username=new QLabel("Username");
  12.     password=new QLabel("Password");
  13.     usline=new QLineEdit();
  14.     pwdline=new QLineEdit();
  15.     pwdline->setEchoMode(QLineEdit::Password);
  16.     accedi=new QPushButton("Accedi");
  17.     //back=new QPushButton("Back");
  18.     connect(accedi, SIGNAL(clicked()), this, SLOT(verifica()));
  19.     //connect(back,SIGNAL(clicked()),SLOT(backtohome()));
  20.     //loglayout->addWidget(back);
  21.     loglayout->addWidget(username);
  22.     loglayout->addWidget(usline);
  23.     loglayout->addWidget(password);
  24.     loglayout->addWidget(pwdline);
  25.     loglayout->addWidget(accedi);
  26.     QLayout* oldlayout=layout();
  27.     delete oldlayout;
  28.     setLayout(loglayout);
  29. }
Add Comment
Please, Sign In to add comment