搭建PVB架构,实现前端的基础布局、菜单、表格、图示等功能

This commit is contained in:
lixiaoyuan
2025-08-20 19:00:22 +08:00
parent 5de7687bcc
commit 7e965b6fb4
142 changed files with 28270 additions and 411 deletions

View File

@@ -122,7 +122,7 @@ int MyWebHandler::insertUser(QVariantMap params)
JSgetReqParam("phone", params, fields);
JSgetReqParam("email", params, fields);
JSgetReqParam("is_open", params, fields);
XLOGD() << "[cppNative] insertUser: params=" << fields.to_str();
XLOGD() << "[cppNative] insertUser: params=" << fields.toStr();
bool ret = DAO::insertUser(fields);

View File

@@ -114,10 +114,10 @@ void QUI::combox(QComboBox& comb, QWidget* parent, int x, int y, int w, int h, s
}
}
void QUI::lineedit(QLineEdit& line, QWidget* parent, int x, int y, int w, int h)
void QUI::lineedit(QLineEdit& lineEdit, QWidget* parent, int x, int y, int w, int h)
{
line.setParent(parent);
line.setGeometry(x, y, w, h);
lineEdit.setParent(parent);
lineEdit.setGeometry(x, y, w, h);
}
void QUI::setBackground(QWidget* w, std::string name, QColor color, std::string border)

View File

@@ -56,7 +56,7 @@ public:
static void combox(QComboBox& comb, QWidget* parent, int x, int y, int w, int h, std::vector<std::string> items, std::string v="");
static void lineedit(QLineEdit& line, QWidget* parent, int x, int y, int w, int h);
static void lineedit(QLineEdit& lineEdit, QWidget* parent, int x, int y, int w, int h);
static void setBackground(QWidget* w, std::string name, QColor color=QColor(29, 54, 102), std::string border="border-radius:5px;");
};