-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinfotable.h
More file actions
41 lines (31 loc) · 838 Bytes
/
infotable.h
File metadata and controls
41 lines (31 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef INFOTABLE_H
#define INFOTABLE_H
#include <QWidget>
#include <QLabel>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QCheckBox>
class InfoTable : public QWidget
{
Q_OBJECT
public:
explicit InfoTable(QSize size, QList<QString> titles, QWidget *parent = nullptr);
public:
void setTableTitle(QList<QString> titles);
void setSize(QSize size);
private:
void InitTitle();
QWidget* addOneItem(QList<QString> items, bool isEven);
private:
QList<QString> titles; // 界面的标题
QSize size; // 界面的大小
int per_column_width; // 每列的宽度
int per_row_heigh; // 每行的高度
int per_page_items; // 每页显示的条目数
QList<QWidget*> title_wgs;
private:
QHBoxLayout *head_layout;
signals:
public slots:
};
#endif // INFOTABLE_H