8.30作业

#include "widget.h"
#include 
#include 
#include 
#include 
Widget::Widget(QWidget *parent)
    : QWidget(parent)
{
    this->setWindowTitle("鹏哥快聊");
    this->setWindowIcon(QIcon("C:\\Users\\11596\\Desktop\\wodepeizhenshi"));
    this->resize(490,410);
    QLabel *p=new QLabel(this);
    p->setPixmap(QPixmap("C:\\Users\\11596\\Desktop\\logo"));
    p->move(0,0);
    p->resize(510,180);
    QLabel *q=new QLabel(this);
    q->setPixmap(QPixmap("C:\\Users\\11596\\Desktop\\userName"));
    q->resize(40,30);
    q->move(80,220);
    q->setScaledContents(true);
    QLabel *w=new QLabel(this);
    w->setPixmap(QPixmap("C:\\Users\\11596\\Desktop\\passwd"));
    w->resize(40,30);
    w->move(80,290);
    w->setScaledContents(true);
    QLineEdit *e1=new QLineEdit(this);
    e1->setPlaceholderText("QQ号码/手机/邮箱");
    e1->resize(200,40);
    e1->move(160,220);
    QLineEdit *e2=new QLineEdit(this);
    e2->setPlaceholderText("密码");
    e2->resize(200,40);
    e2->move(160,290);
    e2->setEchoMode(QLineEdit::Password);
    QPushButton *r1=new QPushButton("登录",this);
    r1->resize(90,40);
    r1->move(240,360);
    r1->setIcon(QIcon("C:\\Users\\11596\\Desktop\\login"));
    QPushButton *r2=new QPushButton("取消",this);
    r2->resize(90,40);
    r2->move(345,360);
    r2->setIcon(QIcon("C:\\Users\\11596\\Desktop\\cancel"));

}

Widget::~Widget()
{
}

8.30作业_第1张图片

8.30作业_第2张图片

你可能感兴趣的:(c语言)