【文件属性】:
文件名称:Qt实现简单登录界面
文件大小:36KB
文件格式:ZIP
更新时间:2021-01-16 05:08:53
Qt 登录 MySQL
Qt实现的简单登录界面,可以连接MySQL数据库
...
setWindowTitle(tr("登录界面"));
userNameLabel = new QLabel(tr("用户名:"));
passWordLabel = new QLabel(tr("密码:"));
userNameLineEdit = new QLineEdit;
passWordLineEdit = new QLineEdit;
passWordLineEdit->setEchoMode(QLineEdit::Password);
login = new QPushButton(tr("登录"));
QGridLayout *mainLayout = new QGridLayout(this);
mainLayout->addWidget(userNameLabel,0,0);
mainLayout->addWidget(passWordLabel,1,0);
mainLayout->addWidget(userNameLineEdit,0,1);
mainLayout->addWidget(passWordLineEdit,1,1);
QHBoxLayout *hBoxLayout = new QHBoxLayout;
mainLayout->addLayout(hBoxLayout,2,0,1,2);
hBoxLayout->addStretch();
hBoxLayout->addWidget(login);
...
【文件预览】:
Cube
----.git()
--------info()
--------objects()
--------HEAD(23B)
--------description(73B)
--------config(319B)
--------index(441B)
--------refs()
--------COMMIT_EDITMSG(5B)
--------hooks()
--------FETCH_HEAD(96B)
--------logs()
----widget.cpp(2KB)
----Cube.pro.user(18KB)
----main.cpp(175B)
----Cube.pro(379B)
----widget.h(460B)