Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Login.h
- #ifndef LOGIN_H
- #define LOGIN_H
- #include <QMainWindow>
- #include <QDebug>
- #include <QtSql>
- #include <QFileInfo>
- namespace Ui {
- class login;
- }
- class login : public QMainWindow
- {
- Q_OBJECT
- public:
- explicit login(QWidget *parent = 0);
- ~login();
- private slots:
- void on_pushButton_clicked();
- void on_pushButton_2_clicked();
- private:
- Ui::login *ui;
- QSqlDatabase myDB;
- };
- #endif // LOGIN_H
- log.pro
- #-------------------------------------------------
- #qwdqw0000
- # Project created by QtCreator 2018-06-20T09:36:38
- #
- #-------------------------------------------------
- QT += core gui sql
- greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
- TARGET = log
- TEMPLATE = app
- # The following define makes your compiler emit warnings if you use
- # any feature of Qt which has been marked as deprecated (the exact warnings
- # depend on your compiler). Please consult the documentation of the
- # deprecated API in order to know how to port your code away from it.
- DEFINES += QT_DEPRECATED_WARNINGS
- # You can also make your code fail to compile if you use deprecated APIs.
- # In order to do so, uncomment the following line.
- # You can also select to disable deprecated APIs only up to a certain version of Qt.
- #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
- SOURCES += \
- main.cpp \
- login.cpp
- HEADERS += \
- login.h
- FORMS += \
- login.ui
- login.cpp
- #include "login.h"
- #include "ui_login.h"
- login::login(QWidget *parent) :
- QMainWindow(parent),
- ui(new Ui::login)
- {
- ui->setupUi(this);
- }
- login::~login()
- {
- delete ui;
- }
- void login::on_pushButton_clicked()
- {
- }
- void login::on_pushButton_2_clicked()
- {
- ui->txtpass->setText("");
- ui->txtuser->setText("");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement