摘要: 对于深度拷贝,常见有主要有三种方式。通过序列化和反序列化,通过json转换,以及手动赋值。 阅读全文
posted @ 2019-09-11 09:51 石首桃花山 阅读(448) 评论(0) 推荐(0) 编辑
摘要: void CMainFrame::NewMDIFrame(CString strTitle){ if(strTitle == _T("梯形图")) { g_PrjMg.SetIsMain(true); if(!ActiveMDI(g_PrjMg.m_path+_T("-")+_T("梯形图 - ") 阅读全文
posted @ 2019-09-10 15:17 石首桃花山 阅读(186) 评论(0) 推荐(0) 编辑
摘要: CPlcView* GetPlcView(){ POSITION pos = AfxGetApp()->GetFirstDocTemplatePosition(); //paramview AfxGetApp()->GetNextDocTemplate(pos); //formview AfxGet 阅读全文
posted @ 2019-09-10 14:56 石首桃花山 阅读(131) 评论(0) 推荐(0) 编辑
摘要: bool operator==(const CBigInteger& x, const CBigInteger&y){ if(x.sign != y.sign) return false; if(x.num != y.num) return false; for(int i=0; i < x.num 阅读全文
posted @ 2019-09-07 16:13 石首桃花山 阅读(121) 评论(0) 推荐(0) 编辑
摘要: #ifdef _DEBUG #else #endif #ifdef _DEBUG#pragma comment(lib,"..\\debug\\LedCtrlBoard.lib")#else#pragma comment(lib,"..\\release\\LedCtrlBoard.lib")#en 阅读全文
posted @ 2019-09-07 15:37 石首桃花山 阅读(359) 评论(0) 推荐(0) 编辑
摘要: CSize fontMetricsCSize(QString source, QPainter *pDC); CSize fontMetricsCSize(QString source, QPainter *pDC){ CSize sz; QFontMetrics fontMetrics(pDC-> 阅读全文
posted @ 2019-08-16 17:59 石首桃花山 阅读(177) 评论(0) 推荐(0) 编辑
摘要: typedef list<CNewParRange> ParList; const CString C_Pos_Start_Completion[] = { _T("M2208"), _T("M2240"), _T("M2272"), _T("M2304"), _T("M2336"), _T("M2 阅读全文
posted @ 2019-08-16 17:54 石首桃花山 阅读(101) 评论(0) 推荐(0) 编辑
摘要: #ifndef QTREEWIDGETHELPER_H#define QTREEWIDGETHELPER_H#include <QTreeWidget>#pragma execution_character_set("utf-8")void QTreeWidgetSetHearderLabel(QT 阅读全文
posted @ 2019-08-16 17:52 石首桃花山 阅读(267) 评论(0) 推荐(0) 编辑
摘要: #include <QStringListModel>#include <QStandardItemModel>#include <QModelIndex> 初始化 model = new QStandardItemModel(ui->tableView); model->setColumnCoun 阅读全文
posted @ 2019-08-16 17:40 石首桃花山 阅读(847) 评论(0) 推荐(0) 编辑
摘要: SetSoftElemMonitorRunning = false; QObject::disconnect(this, SIGNAL(ShowData(unsigned char*, int, QString)), this, SLOT(ShowDataSlot(unsigned char*, i 阅读全文
posted @ 2019-08-16 17:39 石首桃花山 阅读(107) 评论(0) 推荐(0) 编辑