#include "widget.h"
Widget::Widget(QWidget *parent)
: QWidget(parent)
{
this->resize(600,400);
this->setWindowIcon(QIcon("C:\\Users\\123\\Desktop\\icon\\R-C.png"));
this->setWindowTitle("夸克聊天室");
QLabel *lab1=new QLabel(this);
lab1->resize(600,180);
lab1->setPixmap(QPixmap("C:\\Users\\123\\Desktop\\icon\\quark.jpg"));
lab1->setScaledContents(true);
QLabel *lab2=new QLabel(this);
lab2->resize(40,40);
lab2->move(180,200);
lab2->setPixmap(QPixmap("C:\\Users\\123\\Desktop\\icon\\usr.png"));
lab2->setScaledContents(true);
QLineEdit *edit_usr=new QLineEdit(this);
edit_usr->move(230,210);
edit_usr->setPlaceholderText("账号");
QLabel *lab3=new QLabel(this);
lab3->resize(35,35);
lab3->move(180,250);
lab3->setPixmap(QPixmap("C:\\Users\\123\\Desktop\\icon\\pd.png"));
lab3->setScaledContents(true);
QLineEdit *edit_pd=new QLineEdit(this);
edit_pd->move(230,260);
edit_pd->setPlaceholderText("密码");
edit_pd->setEchoMode(QLineEdit::Password);
QPushButton *btn_up=new QPushButton(QIcon("C:\\Users\\123\\Desktop\\icon\\denglu_1.png"),"登录",this);
btn_up->move(180,310);
QPushButton *btn_cancle=new QPushButton(QIcon("C:\\Users\\123\\Desktop\\icon\\quxiao.png"),"登录",this);
btn_cancle->move(305,310);
}
Widget::~Widget()
{
}