新建txt文件保存以下内容: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons] "29"="%systemr
class myThread:public QThread { signals: void updateSig(MyData); } void myThread::run() { emit updateSig(MyData); } class MainWid:public Mai
QComboBox *cmBox = new QComboBox(); cmBox->setStyleSheet("QComboBox{font-family:'微软雅黑';font-size:9; border:1px solid lightgray;}" "QComboBox QAbst
void FlightPlanWid::readExcel(QString path) { QXlsx::Document xlsx(path); QXlsx::Workbook *workBook = xlsx.workbook(); QXlsx::Worksheet *w
QAxObject * excel = NULL; QAxObject * workbooks = NULL; QAxObject * workbook = NULL; excel = new QAxObject(this); excel -> setControl("Excel.Applicati
void ScriptConfig::updateComboBox() { QDir fromDir = "./Data"; QStringList filters; filters.append("*.xls"); filters.append("*.xlsx");
1.QAction void addAction(QAction * action, ActionPosition position) QLineEdit::LeadingPosition//前面 QLineEdit::TrailingPosition//后面 2.自定义 QMargins mar
#include <iostream> using namespace std; class Test { int num; public: Test() { num=10; } void print1() { cout