摘要: QMargins margins = m_lineEditSearch->textMargins(); m_lineEditSearch->setTextMargins(2, margins.top(), margins.right(), margins.bottom()); m_lineEditS 阅读全文
posted @ 2022-03-14 14:16 jieche 阅读(75) 评论(0) 推荐(0) 编辑
摘要: ui->tableView->setSelectionBehavior(QAbstractItemView::SelectRows); ui->tableView->setContextMenuPolicy(Qt::CustomContextMenu); m_rightClickMenu = new 阅读全文
posted @ 2022-03-03 21:09 jieche 阅读(604) 评论(0) 推荐(0) 编辑
摘要: //获取创建的csv文件名 QString csvFilePath = "./Attribute.csv"; if (csvFilePath.isEmpty()) return; QFile outFile(csvFilePath); outFile.open(QIODevice::Truncate 阅读全文
posted @ 2022-03-02 21:56 jieche 阅读(464) 评论(0) 推荐(0) 编辑
摘要: tabview-导出excel-测试可以用 阅读全文
posted @ 2021-01-30 15:58 jieche 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 安装MySQL注意事项 1.根据选择的三方库,选择对应的MySQL版本 2.注意MySQL8.0以上,密码加密方式改变,导致navicat无法登录,解决方案欢迎阅读 修改密码和对应加密方式 3.安装MySQL8.0以上,需要安装环境vc_redist.x64.exe,vs15-vs19 连接MySQ 阅读全文
posted @ 2020-12-23 11:02 jieche 阅读(301) 评论(0) 推荐(0) 编辑
摘要: class InfoVisitor : public osg::NodeVisitor { public: InfoVisitor():osg::NodeVisitor(TRAVERSE_ALL_CHILDREN) { count = 0; } virtual void apply(osg::Nod 阅读全文
posted @ 2020-11-23 01:35 jieche 阅读(130) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; template<typename T ,void (*f)(T& v)> void foreach(T arr[], unsigned size) { for (size_t i = 0; i < size; i++) 阅读全文
posted @ 2020-05-02 13:06 jieche 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 派生类函数名 原来会遮挡 基类函数名(可以用using 解决) 阅读全文
posted @ 2020-04-13 22:21 jieche 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1 using namespace std; 2 3 //#pragma execution_character_set("UTF-8") 4 int main(int argc, char *argv[]) 5 { 6 QApplication a(argc, argv); 7 QString s 阅读全文
posted @ 2020-03-07 09:06 jieche 阅读(186) 评论(0) 推荐(0) 编辑
摘要: OSG 牛 阅读全文
posted @ 2019-07-23 23:17 jieche 阅读(197) 评论(0) 推荐(0) 编辑