#include "mywidget.h"
MyWidget::MyWidget(QWidget *parent)
: QMainWindow(parent)
{
//设置界面固定大小
this->resize(1728,972);
this->setFixedSize(1728,972);
this->setWindowIcon(QIcon("C:\\Users\\78507\\Desktop\\pic\\qq1.png"));
this->setWindowTitle("WeGame");
this->setWindowFlag(Qt::FramelessWindowHint);
//设定主界面背景
QLabel *lab1=new QLabel(this);
lab1->resize(1728,972);
lab1->setPixmap(QPixmap("C:\\Users\\78507\\Desktop\\pic\\hb.jpg"));
lab1->setScaledContents(true);
//设置游戏图标
QLabel *lab2=new QLabel(this);
lab2->resize(400,300);
lab2->move(664,130);
lab2->setPixmap(QPixmap("C:\\Users\\78507\\Desktop\\pic\\1.2.png"));
lab2->setScaledContents(true);
//设置qq图标
QLabel *lab3=new QLabel(this);
lab3->resize(70,70);
lab3->move(800,450);
lab3->setPixmap(QPixmap("C:\\Users\\78507\\Desktop\\pic\\qq.png"));
lab3->setScaledContents(true);
//设置微信图标
QLabel *lab4=new QLabel(this);
lab4->resize(70,70);
lab4->move(928,450);
lab4->setPixmap(QPixmap("C:\\Users\\78507\\Desktop\\pic\\wx.png"));
lab4->setScaledContents(true);
//账号编辑
QLineEdit *edt1=new QLineEdit(this);
edt1->resize(390,65);
edt1->move(710,524);
edt1->setPlaceholderText("请输入账号:");
//密码设置
QLineEdit *edit2=new QLineEdit(this);
edit2->resize(390,65);
edit2->move(710,610);
edit2->setPlaceholderText("请输入密码:");
edit2->setEchoMode(QLineEdit::Password);
//复选框保存密码
QLabel *edit3=new QLabel("保存密码",this);
edit3->move(710,690);
edit3->resize(140,40);
//复选框自动登录
QLabel *edit4=new QLabel("自动登录",this);
edit4->move(870,690);
edit4->resize(140,40);
//二维码
QLabel *edt3=new QLabel(this);
edt3->setPixmap(QPixmap("C:\\Users\\78507\\Desktop\\pic\\ew.png"));
edt3->move(1030,690);
edt3->resize(50,40);
edt3->setScaledContents(true);
//快速安全登录按钮
QPushButton *btn1=new QPushButton("快速安全登录",this);
btn1->resize(390,65);
btn1->move(710,760);
btn1->setStyleSheet("background-color:rgb(255,102,40)");
QPushButton *btn2=new QPushButton("×",this);
btn2->resize(40,40);
btn2->move(1670,0);
QPushButton *btn3=new QPushButton("-",this);
btn3->resize(40,40);
btn3->move(1630,0);
}
MyWidget::~MyWidget()
{
}