上一页 1 2 3 4 5 6 ··· 18 下一页
摘要: mainwindow.ui <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>MainWindow</class> <widget class="QMainWindow" name="MainWindow"> <prop 阅读全文
posted @ 2025-06-04 14:15 liliyou 阅读(12) 评论(0) 推荐(0)
摘要: protected $middleware = [ Auth::class => ['except' => ['method1', 'method2']] ]; 阅读全文
posted @ 2025-06-03 16:55 liliyou 阅读(10) 评论(0) 推荐(0)
摘要: 下面三个日期格式化函数是最常用的 Select CONVERT(varchar(100), GETDATE(), 23): 2006-05-16 Select CONVERT(varchar(100), GETDATE(), 24): 10:57:47 Select CONVERT(varchar( 阅读全文
posted @ 2025-06-03 11:19 liliyou 阅读(4) 评论(0) 推荐(0)
摘要: QT += core sql #include <QSqlQuery> QStringList drivers = QSqlDatabase::drivers(); foreach(QString driver, drivers) qDebug() << driver; //添加数据库驱动 QSql 阅读全文
posted @ 2025-05-30 16:01 liliyou 阅读(31) 评论(0) 推荐(0)
摘要: netstat -an | find ":" /c 阅读全文
posted @ 2025-05-30 11:43 liliyou 阅读(21) 评论(0) 推荐(0)
摘要: // 构建JSON对象 QJsonObject json; json.insert("state", "error"); json.insert("age", 11); // 构建JSON文档 QJsonDocument document; document.setObject(json); // 阅读全文
posted @ 2025-05-30 11:31 liliyou 阅读(74) 评论(0) 推荐(0)
摘要: 获取选择的值 int index = ui->comboBox->currentIndex(); QString value = ui->comboBox->itemText(index); qDebug() <<" comboBox选中的值="<<value; 设置选择项: ui->comboBo 阅读全文
posted @ 2025-05-30 11:20 liliyou 阅读(23) 评论(0) 推荐(0)
摘要: QListView *listview = new QListView(this); //创建QListView对象 listview->setGeometry(50, 20, 100, 200); //设置位置和大小 QStringList list; //创建数据显示列表 list.append 阅读全文
posted @ 2025-05-29 16:05 liliyou 阅读(52) 评论(0) 推荐(0)
摘要: // // Created by lenovo on 2025-05-29. // #ifndef MAX_H #define MAX_H //template 关键字告诉C++编译器 要开始泛型编程了 //T - 参数化数据类型 template <typename T> T Max(T a, T 阅读全文
posted @ 2025-05-29 14:40 liliyou 阅读(12) 评论(0) 推荐(0)
摘要: 1、定义 template <typename T> class A { public: // A(T t) { // this->t = t; // } void setT(T t) { this->t =t; } T& getT() { return t; } private: T t; }; 阅读全文
posted @ 2025-05-27 09:33 liliyou 阅读(7) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 18 下一页