#include "widget.h"Widget::Widget(QWidget *parent): QWidget(parent)
{this->resize(500,600);this->setFixedSize(500,600);//设置窗口标题this->setWindowTitle("盗版qq");//设置窗口图标this->setWindowIcon(QIcon("D://QQ下载//icon_z8w8m9orsdk//QQ"));//this->setStyleSheet("background-color:skyblue; color:red;");QLabel *lab1=new QLabel(this);lab1->resize(500,200);lab1->setStyleSheet("background-color:skyblue; color:red;");lab1->setPixmap(QPixmap("D:/QQ下载/icon_z8w8m9orsdk/qiongmao"));//设置内容为自适应lab1->setScaledContents(true);//账户QLabel *lab2=new QLabel("账户",this);lab2->resize(50,50);lab2->move(90,300);lab2->setPixmap(QPixmap("D:/QQ下载/icon_z8w8m9orsdk/denglu"));//设置内容为自适应lab2->setScaledContents(true);//账户行编辑器QLineEdit *edit1=new QLineEdit(this);edit1->resize(200,50);edit1->move(150,300);edit1->setPlaceholderText("QQ号/微信/邮箱");//密码QLabel *lab3=new QLabel("密码",this);lab3->resize(50,50);lab3->move(90,360);lab3->setPixmap(QPixmap("D://QQ下载//icon_z8w8m9orsdk//denglumima"));//设置内容为自适应lab3->setScaledContents(true);//密码行编辑器QLineEdit *edit2=new QLineEdit(this);edit2->resize(200,50);edit2->move(150,360);edit2->setPlaceholderText("密码");edit2->setEchoMode(QLineEdit::Password);//登录按钮类QPushButton *btn1=new QPushButton("登录",this);btn1->resize(80,50);btn1->move(200,450);//btn1->setEnabled(false);btn1->setIcon(QIcon("D://QQ下载//icon_z8w8m9orsdk//denglu_1"));//取消按钮类QPushButton *btn2=new QPushButton("取消",this);btn2->resize(80,50);btn2->move(300,450);btn2->setIcon(QIcon("D://QQ下载//icon_z8w8m9orsdk//quxiao"));}Widget::~Widget()
{}