摘要:
对于深度拷贝,常见有主要有三种方式。通过序列化和反序列化,通过json转换,以及手动赋值。 阅读全文
摘要:
void CMainFrame::NewMDIFrame(CString strTitle){ if(strTitle == _T("梯形图")) { g_PrjMg.SetIsMain(true); if(!ActiveMDI(g_PrjMg.m_path+_T("-")+_T("梯形图 - ") 阅读全文
摘要:
CPlcView* GetPlcView(){ POSITION pos = AfxGetApp()->GetFirstDocTemplatePosition(); //paramview AfxGetApp()->GetNextDocTemplate(pos); //formview AfxGet 阅读全文
摘要:
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 阅读全文
摘要:
#ifdef _DEBUG #else #endif #ifdef _DEBUG#pragma comment(lib,"..\\debug\\LedCtrlBoard.lib")#else#pragma comment(lib,"..\\release\\LedCtrlBoard.lib")#en 阅读全文
摘要:
CSize fontMetricsCSize(QString source, QPainter *pDC); CSize fontMetricsCSize(QString source, QPainter *pDC){ CSize sz; QFontMetrics fontMetrics(pDC-> 阅读全文
摘要:
typedef list<CNewParRange> ParList; const CString C_Pos_Start_Completion[] = { _T("M2208"), _T("M2240"), _T("M2272"), _T("M2304"), _T("M2336"), _T("M2 阅读全文
摘要:
#ifndef QTREEWIDGETHELPER_H#define QTREEWIDGETHELPER_H#include <QTreeWidget>#pragma execution_character_set("utf-8")void QTreeWidgetSetHearderLabel(QT 阅读全文
摘要:
#include <QStringListModel>#include <QStandardItemModel>#include <QModelIndex> 初始化 model = new QStandardItemModel(ui->tableView); model->setColumnCoun 阅读全文
摘要:
SetSoftElemMonitorRunning = false; QObject::disconnect(this, SIGNAL(ShowData(unsigned char*, int, QString)), this, SLOT(ShowDataSlot(unsigned char*, i 阅读全文