登录界面
ui->setupUi(this);
this->setFixedSize(647,400);
this->setWindowFlag(Qt::FramelessWindowHint,0);
this->setWindowTitle("QQ");
this->setWindowIcon(QIcon("E:\\Users\\Blue\\icon_z8w8m9orsdk\\QQ1.png"));
this->setStyleSheet("background-color:#fff;color:black;");
QPushButton *btn1=new QPushButton;
btn1->setParent(this);
btn1->setText("登录");
btn1->resize(250,50);
btn1->move(197,265);
btn1->setIcon(QIcon("E:\\Users\\Blue\\icon_z8w8m9orsdk\\denglu_1.png"));
btn1->setStyleSheet("background-color:#24b0ff;border-radius:6px;color:black;font-size:20px");
QPushButton *btn2=new QPushButton(this);
btn2->setText("注册");
btn2->resize(250,40);
btn2->move(197,340);
btn2->setIcon(QIcon("E:\\Users\\Blue\\icon_z8w8m9orsdk\\QQ2.png"));
btn2->setStyleSheet("background-color:#24b0ff;border-radius:5px;color:black;");
QLabel *lab1=new QLabel(this);
lab1->resize(25,25);
qDebug() << lab1->text();
lab1->move(197,90);
QLabel *lab2=new QLabel(this);
lab2->resize(lab1->size());
lab2->move(197,150);
lab1->setPixmap(QPixmap("E:\\Users\\Blue\\icon_z8w8m9orsdk\\QQ1.png"));
lab1->setScaledContents(1);
lab2->setPixmap(QPixmap("E:\\Users\\Blue\\icon_z8w8m9orsdk\\suo.png"));
lab2->setScaledContents(1);
QLineEdit *edit1 = new QLineEdit(this);
edit1->resize(220,35);
edit1->move(227,90);
edit1->setStyleSheet("border:none;border-bottom:1px solid black;");
edit1->setPlaceholderText("账号");
QLineEdit *edit2 = new QLineEdit(this);
edit2->resize(edit1->size());
edit2->move(227,150);
edit2->setPlaceholderText("密码");
edit2->setStyleSheet("border:none;border-bottom:1px solid black;");
edit2->setEchoMode(QLineEdit::Password);
qDebug() << edit2->text();