logplus/logPlus/wellheader.h

43 lines
791 B
C++

#ifndef WELLHEADER_H
#define WELLHEADER_H
#include <QWidget>
#include <QPainter>
#include <QPaintEvent>
#include "FormBase.h"
#pragma execution_character_set("utf-8")
class FormWell;
class WellHeader : public FormBase
{
Q_OBJECT
public:
explicit WellHeader(QWidget *parent = nullptr, QString strSlfName="", QString strWellName="");
~WellHeader();
void initProperty(QJsonObject obj);
QJsonObject makeJson();
private:
protected:
void paintEvent(QPaintEvent *event);
void mousePressEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
public slots:
public:
QString m_strUuid;
QFont m_Font = QFont("微软雅黑", 14); //显示名称字体
QColor m_Color; //颜色
bool m_press;//判断鼠标是否按下
};
#endif // WELLHEADER_H