上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
  2020年11月9日
摘要: 一、开机自启 1、编写要实现开机自启的文件。~vim xxx.py 2、找到该文件的绝对路径。pwd 3、打开/etc/rc.d/rc.local文件 sudo vim /etc/rc.d/rc.local获取sudo vim /etc/rc.local 4、编写内容。 以py文件为例: #!/bi 阅读全文
posted @ 2020-11-09 11:23 缘随风烬 阅读(3328) 评论(0) 推荐(0) 编辑
  2020年11月6日
摘要: 有些时候信号与槽在连接时需要注意信号函数的参数与槽函数的参数要保持一致。 还有需要注意的是:不要被当前类中新new的窗口所误导。 刚开始时我写了个错误的信号与槽 QObject::connect(log, SIGNAL(sendText(QString)), this, SLOT(showText( 阅读全文
posted @ 2020-11-06 16:12 缘随风烬 阅读(229) 评论(0) 推荐(0) 编辑
  2020年11月2日
摘要: lambda表达式可以看作是函数的缩写,比如: # 使用普通函数 def func(x): return x+1 print(func(1)) #由此可以得出结果为2 # 使用lambda表达式 add = lambda x: x+1 print(add(1)) #结果也为2 由此可知使用lambd 阅读全文
posted @ 2020-11-02 11:48 缘随风烬 阅读(106) 评论(0) 推荐(0) 编辑
摘要: QFile qss(":/softwareDetails.qss");//设置qss文件打开路径 qss.open(QFile::ReadOnly);//只读,打开qss文件 if(qss.isOpen()) { this->setStyleSheet(qss.readAll());//如果打开成功 阅读全文
posted @ 2020-11-02 10:23 缘随风烬 阅读(1881) 评论(0) 推荐(0) 编辑
  2020年9月23日
摘要: QPushBitton QPushButton{ min-width:75px; max-width:75px; min-height:20px; border:1px solid black; // 边框 border-radius:5px; //圆角 } QPushButton:pressed{ 阅读全文
posted @ 2020-09-23 15:55 缘随风烬 阅读(893) 评论(0) 推荐(0) 编辑
  2020年9月18日
摘要: GM11和GM21虽然都可进行预测,但是GM11是对单调性的数据进行预测(单调递增或递减),而GM21是对周期性的数据进行预测。 GM21代码如下: # -*- coding=utf-8 -*- import numpy as np from sympy import * from sympy.ab 阅读全文
posted @ 2020-09-18 14:59 缘随风烬 阅读(410) 评论(0) 推荐(0) 编辑
  2020年9月17日
摘要: // 监控文件夹 void UpdateService::Monitor() { QString sPluginsPath = QString("%1/new").arg(QApplication::applicationDirPath()); m_pluginWatcher = new QFile 阅读全文
posted @ 2020-09-17 10:31 缘随风烬 阅读(992) 评论(0) 推荐(0) 编辑
  2020年8月7日
摘要: 一、类通信 1、事件发布类 .h文件 #ifndef BLOGMANAGER_H #define BLOGMANAGER_H #include "ctkPluginContext.h" typedef struct Blog_Info{ QString title; QString author; 阅读全文
posted @ 2020-08-07 17:17 缘随风烬 阅读(871) 评论(1) 推荐(0) 编辑
  2020年8月6日
摘要: 1、不能对表格内容进行修改 ui->tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers); 设置某一列不可编辑 QTableWidgetItem *item1 = new QTableWidgetItem(“xxx”); // 阅读全文
posted @ 2020-08-06 16:30 缘随风烬 阅读(6056) 评论(0) 推荐(0) 编辑
摘要: 去除对话框的标题栏和边框 在构造函数里设置: this->setWindowFlags(Qt::FramelessWindowHint); // 按照对话框的形式创建窗口。 this->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint); //按 阅读全文
posted @ 2020-08-06 16:09 缘随风烬 阅读(3222) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页