Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Homepage::login_utente(){
- hideAll();
- setFixedSize(600,400);
- setAutoFillBackground(true);
- QPalette pal = this->palette();
- pal.setColor(QPalette::Window, Qt::white);
- this->setPalette(pal);
- setWindowTitle("Login Utente");
- QHBoxLayout* loglayout=new QHBoxLayout;
- username=new QLabel("Username");
- password=new QLabel("Password");
- usline=new QLineEdit();
- pwdline=new QLineEdit();
- pwdline->setEchoMode(QLineEdit::Password);
- accedi=new QPushButton("Accedi");
- //back=new QPushButton("Back");
- connect(accedi, SIGNAL(clicked()), this, SLOT(verifica()));
- //connect(back,SIGNAL(clicked()),SLOT(backtohome()));
- //loglayout->addWidget(back);
- loglayout->addWidget(username);
- loglayout->addWidget(usline);
- loglayout->addWidget(password);
- loglayout->addWidget(pwdline);
- loglayout->addWidget(accedi);
- QLayout* oldlayout=layout();
- delete oldlayout;
- setLayout(loglayout);
- }
Add Comment
Please, Sign In to add comment