- 博客(17)
- 资源 (4)
- 问答 (1)
- 收藏
- 关注
原创 使用C++和VTK计算直线和面元碰撞点代码
/ 创建Renderer和RenderWindow。// 创建PolyDataMapper和Actor。// 添加Actor到Renderer。// 获取平面的法向量和点。// 计算直线和平面的交点。// 渲染并显示窗口。// 输出交点的坐标。
2023-05-24 16:28:30
789
原创 c++神经网络算法实现
/ 初始化权重和偏置。// 激活函数 sigmoid。// 激活函数 softmax。// one-hot编码。// 将最后一列作为训练数据。// 定义神经网络类。
2023-05-24 16:27:04
1146
原创 qt如何动态连接信号槽
const char* CsiName = SiName.toLatin1().data(); QByteArray siSignature = QMetaObject::normalizedSignature(CsiName); int siIndex = SiClass->metaObject()->indexOfMethod(siSignature); QMetaMethod siMethod = SiClass->metaObje..
2021-08-30 10:59:15
639
原创 qt如何连接数据库Mysql oracle或者国产化系统
主要通过QSqlDatabase类进行连接bool db_connectDatabase(QSqlDatabase* db){db->setHostName(m_hostName); db->setDatabaseName(m_databaseName); db->setUserName(m_userName); db->setPassword(m_passWord); db->setPort(m_post); if (!db-&g
2021-08-30 10:47:05
254
原创 QSlider样式表设置
QSlider{ border-style:outset; border-radius:10px; height:25px; background-color:#142f54;}QSlider::groove:horizontal{ height:12px; background:rgb(142,139,130); border-ra...
2019-11-08 17:58:07
588
原创 QPushButton与QToolButton样式表设置
QPushButton{ background: rgb(76,131,215); color: rgb(255, 255, 255); width: 75px; height: 25px; border-radius:4px;}QPushButton:hover{ background:#1a9b81; color: rgb(220...
2019-11-08 17:55:16
6510
1
原创 QTreeWidget样式表设置
QTreeWidget{ color:rgb(220,220,220); font-size: 12pt; border:1px solid rgb(120,120,120);}QTreeWidget::item:hover{ color:white; }QTreeWidget::item:selected{ color:rgba(2...
2019-11-08 17:54:07
8013
原创 QSpinBox样式表设置
QAbstractSpinBox{ border: 1px solid #26609e; font: 10pt "微软雅黑"; color: rgb(255, 255, 255); height:35px; min-width: 10px; }QAbstractSpinBox::up-button{ subcontrol-origin: p...
2019-11-08 17:53:22
4007
原创 QComboBox样式表设置
QComboBox{ font: 10pt "微软雅黑"; color: rgb(255, 255, 255); min-width: 20px; width:50px; height:25px; border: 1px solid #26609e;}QComboBox::drop-down{ subcontrol-origin...
2019-11-08 17:52:24
1161
原创 QTabWidget样式表设置
QTabWidget { background-color:#0f2033; border-top: 2px solid #C2C7CB; }QTabWidget::pane { /* The tab widget frame */ border-top: 0px solid #C2C7CB; }/* Style the tab using the...
2019-11-08 17:51:19
3915
原创 QTableView或QTableWidget样式表设置
QHeaderView::section{ background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(36, 71, 111, 255), stop:1 rgba(36, 71, 111, 255)); color: rgb(255, 255, 255); font: 7...
2019-11-08 17:50:14
1720
1
原创 QListWidget样式表设置
QListWidget{ color:rgb(200,200,200); border:3px solid gray; padding:20px 0px 0px 0px;}/**列表项*/QListWidget::item{ color:rgb(200,200,200); height:40px; padding-left:20px; ...
2019-11-08 17:48:44
12626
原创 菜单栏QMenu样式设置
/*菜单项*/QMenu{ color:rgb(255,255,255); background-color:#0f2033; border:none;}QMenu::item{ color:rgb(255,255,255); background-color:rgb(76,131,215); ...
2019-11-08 17:47:28
9631
thrift 编译 BUG thrift小白提问
2019-02-22
TA创建的收藏夹 TA关注的收藏夹
TA关注的人