03 2023 档案

摘要:QApplication::applicationDirPath(); //返回的一个字符串格式的路径,直接 +"/可执行程序目录下的其他文件" 阅读全文
posted @ 2023-03-27 11:04 雾枫 阅读(99) 评论(0) 推荐(0) 编辑
摘要:一、 sudo apt install patchelf 二、 sudo apt-get install camke 三、打开.bashrc 1、vim ~/.bashrc 2、添加环境变量(注意自己的qt安装位置) export LD_LIBRARY_PATH=/usr/local/lib:/ho 阅读全文
posted @ 2023-03-24 16:31 雾枫 阅读(2125) 评论(0) 推荐(0) 编辑
摘要:步骤一、查看显卡驱动(看一下系统推荐的版本号) 步骤二、设置下载源(要联网) 步骤三、查看附加驱动(根据步骤一的系统推荐的版本号选择一个) 步骤四、测试 (没安装显卡驱动前,三维图像是模糊的,有严重的锯齿,甚至是黑框) 阅读全文
posted @ 2023-03-24 11:33 雾枫 阅读(149) 评论(0) 推荐(0) 编辑
摘要:原文链接 使用QMovie头文件 QMovie *movie = new QMovie(":/images/timg.gif");//这个资源不用写到source.qrc中,只要路径对了就行,还有就是movie最好是new的 QLabel *label = new QLabel(this); lab 阅读全文
posted @ 2023-03-16 16:57 雾枫 阅读(258) 评论(0) 推荐(0) 编辑
摘要:原文链接 我的代码example // start a thread , execute algorithm QFuture<void> future = QtConcurrent::run(this,&Deployment::useAlgorithm, ui->stratPointLonEdit- 阅读全文
posted @ 2023-03-16 16:38 雾枫 阅读(43) 评论(0) 推荐(0) 编辑
摘要:改变成新的数据后,执行 replot()函数,重新绘制 connect(ui->Bt,&QPushButton::clicked,this,[&](){ //设置新的数据 ... //设置新的名称 m_customPlot->graph(0)->setName("新的图例名称"); // 重画图像 阅读全文
posted @ 2023-03-15 17:08 雾枫 阅读(330) 评论(0) 推荐(0) 编辑
摘要:一、设置坐标轴名称 1. m_3dscatter->axisX()->setTitleVisible(true); 2. m_3dscatter->axisX()->setTitle("经度"); 1 完整代码: 2 3 m_3dscatter->axisX()->setRange(-20.0f, 阅读全文
posted @ 2023-03-14 16:42 雾枫 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-03-14 14:12 雾枫 阅读(14) 评论(0) 推荐(0) 编辑
摘要:ValueAxis3D 使用函数: 1、setSubSegmentCount(int count) :网格数 = 输入的数 * 5 + 1 而且,坐标轴标签只显示6个 2、setSegmentCount(int count): 网格数 = 输出的数 输入多少个数,就会显示多少个标签 阅读全文
posted @ 2023-03-13 16:46 雾枫 阅读(93) 评论(0) 推荐(0) 编辑
摘要:我的代码需要获取到系统屏幕宽度和高度 m_graphicspixmapitem->setPixmap(QPixmap("map.png").scaled(QSize(QApplication::primaryScreen()->geometry().width(),QApplication::pri 阅读全文
posted @ 2023-03-13 11:30 雾枫 阅读(586) 评论(0) 推荐(0) 编辑
摘要:连接 阅读全文
posted @ 2023-03-11 23:58 雾枫 阅读(69) 评论(0) 推荐(0) 编辑
摘要:Index of /archive/qt/5.14/5.14.2 阅读全文
posted @ 2023-03-11 20:39 雾枫 阅读(812) 评论(0) 推荐(0) 编辑
摘要:1、windows设置 原文连接1 原文链接2 2、linux设置 原文链接 阅读全文
posted @ 2023-03-09 23:49 雾枫 阅读(359) 评论(0) 推荐(0) 编辑
摘要:原文链接 1、从下面网址下载bug fix版本的qwtplot3d https://sourceforge.net/p/qwtplot3d/code/HEAD/tree/branches/multiple_curves_0_2_x/ 2、解压刚刚下载的文件,用Qt打开目录下的qwtplot3d.pr 阅读全文
posted @ 2023-03-07 16:30 雾枫 阅读(207) 评论(0) 推荐(0) 编辑
摘要:原文链接 一下,是直接抄过来的: 环境:window QTcreator1:编译QWT3dQWT3d下载地址::https://sourceforge.net/projects/qwtplot3d/files/我们选择最新版本下载解压 解压后文件结构 使用QT打开qwtplot3d.pro进行编译提 阅读全文
posted @ 2023-03-07 14:58 雾枫 阅读(270) 评论(0) 推荐(0) 编辑
摘要:一、添加qcharts模块 QT += qcharts 二、引入头文件,和使用命名空间 #include <QChart> QT_CHARTS_USR_NAMESPACE 三、实例化出 曲线对象 chart对象 x轴对象 y轴对象 四、可以进行一些设置 设置x轴和y轴的范围 设置显示的网格数 五、 阅读全文
posted @ 2023-03-07 09:38 雾枫 阅读(539) 评论(0) 推荐(0) 编辑
摘要:使用linuxdeployqt在linux下进行Qt打包发布(超详细) 1、设置qt环境变量 2、下载编译linuxdeployqt (或下载现成的) 编译教程 3、如果配置好qt环境变量(随便打开终端 输入qmake -vesion,有版本相关输出表明环境变量配置好) 打包时,总是提示找不到qt相 阅读全文
posted @ 2023-03-06 21:38 雾枫 阅读(305) 评论(0) 推荐(0) 编辑
摘要://第一个参数代表:第几列,第二个参数:代表要进行的操作(对内容进行调整,或者,添加拉伸达到拉长表格的效果) ui->tableWidget->horizontalHeader()->setSectionResizeMode(0,QHeaderView::ResizeToContents); ui- 阅读全文
posted @ 2023-03-05 14:21 雾枫 阅读(2363) 评论(0) 推荐(0) 编辑
摘要://设置上下左右的距离 m_vboxlayout->setContentsMargins(0,0,0,0); 阅读全文
posted @ 2023-03-02 15:10 雾枫 阅读(100) 评论(0) 推荐(0) 编辑
摘要:m_labelTitletext->setText("仿真系统"); //设置字号 QFont ft; ft.setPointSize(16); m_labelTitletext->setFont(ft); //设置颜色 QPalette pa; pa.setColor(QPalette::Wind 阅读全文
posted @ 2023-03-02 14:26 雾枫 阅读(690) 评论(0) 推荐(0) 编辑
摘要:this->resize(m_parent->width(),100); 阅读全文
posted @ 2023-03-02 14:09 雾枫 阅读(96) 评论(0) 推荐(0) 编辑
摘要:原文链接 #include <QScrollBar> // 获取当前鼠标相对于view的位置; QPointF cursorPoint = event->pos(); // 获取当前鼠标相对于scene的位置; QPointF scenePos = this->mapToScene(QPoint(c 阅读全文
posted @ 2023-03-01 18:06 雾枫 阅读(498) 评论(2) 推荐(0) 编辑

点击右上角即可分享
微信分享提示