Beispiel #1
0
QqLogin::QqLogin():ui(new Ui_Dialog()){
    ui->setupUi(this);
		connect(ui->blogin,SIGNAL(clicked()),
						this,SLOT(loginAndCancel()));
		connect(ui->bcancel,SIGNAL(clicked()),
						this,SLOT(loginAndCancel()));
}
Beispiel #2
0
QqLogin::QqLogin(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::QqLogin)
{
    ui->setupUi(this);
    connect(ui->blogin,SIGNAL(clicked()),
        this,SLOT(loginAndCancel()));
    connect(ui->bcancel,SIGNAL(clicked()),
        this,SLOT(loginAndCancel()));
}
Beispiel #3
0
Login::Login(){
    this->resize(350,300);
    uname=new  QLineEdit(this);
    upasswd=new QLineEdit(this); 
    login=new QPushButton("login",this);
    cancel=new QPushButton("cancel",this);
    /*调整组件的位置*/
    uname->move(150,50);
    upasswd->move(150,110);
    login->move(70,220);
    cancel->move(200,220);    
    /*把login  cancel  按钮都连接到一个槽*/
    connect(login,SIGNAL(clicked()),this,SLOT(loginAndCancel()));
    connect(cancel,SIGNAL(clicked()),this,SLOT(loginAndCancel()));
}