5 Star 17 Fork 18

sj0830 / qt_project

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
frminputbox.h 758 Bytes
一键复制 编辑 原始数据 按行查看 历史
sj0830 提交于 2020-02-18 23:34 . 首次提交,建立基础开发版本;
#ifndef FRMINPUTBOX_H
#define FRMINPUTBOX_H
#include <QDialog>
namespace Ui
{
class frmInputBox;
}
class frmInputBox : public QDialog
{
Q_OBJECT
public:
explicit frmInputBox(QWidget *parent = 0);
~frmInputBox();
void SetMessage(QString title);
QString GetValue()const {
return value;
}
protected:
void mouseMoveEvent(QMouseEvent *e);
void mousePressEvent(QMouseEvent *e);
void mouseReleaseEvent(QMouseEvent *);
private slots:
void on_btnOk_clicked();
private:
Ui::frmInputBox *ui;
QPoint mousePoint; //鼠标拖动自定义标题栏时的坐标
bool mousePressed; //鼠标是否按下
void InitStyle(); //初始化无边框窗体
QString value;
};
#endif // FRMINPUTBOX_H
C/C++
1
https://gitee.com/sjsun/qt_project.git
git@gitee.com:sjsun/qt_project.git
sjsun
qt_project
qt_project
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891