摘要: ui.lineEdit->setStyleSheet("QLineEdit{background: rgb(255,255,255,255);border-radius: 8px;border: 2px solid gray;}" "QLineEdit:hover{border: 3px solid 阅读全文
posted @ 2022-05-27 14:35 雾枫 阅读(41) 评论(0) 推荐(0) 编辑
摘要: https://vimsky.com/examples/detail/cpp-ex QPalette-setBrush-method.html 阅读全文
posted @ 2022-05-27 09:38 雾枫 阅读(25) 评论(0) 推荐(0) 编辑
摘要: #pragma once #include <QtWidgets/QMainWindow> #include "ui_mainwindow.h" #include <QMenuBar> //菜单栏 #include <QMenu> //菜单 #include <QAction> //菜单里面的选项 阅读全文
posted @ 2022-05-17 15:30 雾枫 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 1.在Windows系统环境变量下增加 QTDIR = 你QT的安装目录. 2启动VS->工具->选项->项目和解决方案->VC++目录:(VS2015及以上版本则为启动VS->项目->属性->VC++目录) 可执行文件下增加:$(QTDIR)\bin 包含文件下增加:$(QTDIR)\includ 阅读全文
posted @ 2022-05-17 11:26 雾枫 阅读(1341) 评论(0) 推荐(0) 编辑
摘要: 一、c++控制台部分 #include <iostream> #include <fstream> #include <string> #include <vector> using namespace std; int main( int arge,char **argv) { ofstream 阅读全文
posted @ 2022-05-12 18:26 雾枫 阅读(534) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <vector> //字符串分割函数 std::vector<std::string> split(std::string str,std::string pattern) { std::string::s 阅读全文
posted @ 2022-05-12 13:32 雾枫 阅读(27) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <fstream> #include <string> #include <vector> using namespace std; //文本文件 写文件 int main( int arge,char **argv) { cout << " 阅读全文
posted @ 2022-05-12 13:07 雾枫 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <fstream> 3 #include <string> 4 using namespace std; 5 //文本文件 写文件 6 void write_() 7 { 8 //以下一一种建立并写入TXT文件的方式 9 ofstre 阅读全文
posted @ 2022-05-12 10:00 雾枫 阅读(3065) 评论(0) 推荐(0) 编辑
摘要: #define CALC_MODEL_1 QApplication::applicationDirPath() + "/calcApp" + "/readFile.exe" void MainWindow::on_pushButton_clicked() { QProcess *myProcess 阅读全文
posted @ 2022-05-12 09:28 雾枫 阅读(112) 评论(0) 推荐(0) 编辑