05 2021 档案
摘要:bug一个接一个 if (changeElementValueButton==nullptr) { changeElementValueButton = new QPushButton; changeElementValueButton->setMaximumWidth(22); changeEle
阅读全文
摘要:if (this->qObjVector.size()==0) { ESMessageBox msgBox; msgBox.AutoSetSize(320, 180); msgBox.setText(tr(u8"图元未连接,请用箭头连接图元后保存!")); msgBox.exec(); return
阅读全文
摘要:这是我遇到的最可怕的异常,调试了两天,还是没有头绪! QPixmap pixmap = this->grab(QRect(aleft, atop, awidth, aheight)); 0x00007FFE9E5F0B1A (Qt5Widgetsd.dll)处(位于 xxx.exe 中)引发的异常:
阅读全文
摘要:Qt渐变染色 ColorGradientTest1.pro # # # Project created by QtCreator 2021-05-29T19:30:05 # # QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widget
阅读全文
摘要:相关系数矩阵计算,忙里抽闲,加班加点,把这部分进度赶一赶,美丽的夏天开始了,这是在实验室的第五个夏天,每天的时间感觉都不够用,加油,不辜负每一天! import numpy as np import math def getPearsonMatrix(S_mat,thresholdValue): r
阅读全文
摘要:mapVar0 = sorted(mapVar.items(), key=lambda x: x[1], reverse=True) ###################
阅读全文
摘要:处理json文件中的文件名 package com.vfsd.core; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream
阅读全文
摘要:qResultCharts->setQWebEngineViewMaxHeight(this->frameGeometry().height()); ######
阅读全文
摘要:ffmpeg中未定义av_image_get_buffer_size 引入: #include <libavutil/imgutils.h> #############
阅读全文
摘要:AVPixelFormat enum AVPixelFormat { AV_PIX_FMT_NONE = -1, AV_PIX_FMT_YUV420P, ///< planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples) AV_PIX
阅读全文
摘要:Header: #include <QGeoPolygon>qmake: QT += positioning Since: Qt 5.10Inherits: QGeoShape QGeoPolygon类定义地理多边形。多边形由表示其周长的QGeoCoordinates的有序列表定义。此列表中的每两个
阅读全文
摘要:Matlab Eckert4 landareas = shaperead('landareas.shp','UseGeoCoords',true); axesm ('eckert4', 'Frame', 'on', 'Grid', 'on'); geoshow(landareas,'FaceColo
阅读全文
摘要:IfcBenchmarkEnum is an enumeration used to identify the logical comparators that can be applied in conjunction with constraint values. HISTORY New enu
阅读全文
摘要:Ubuntu20 ros 1、安装terminal uo@luo-ThinkPad-T440p:~$ luo@luo-ThinkPad-T440p:~$ luo@luo-ThinkPad-T440p:~$ sudo apt-get install terminator正在读取软件包列表... 完成正
阅读全文
摘要:Matlab获取矩阵几行几列 >> >> File_Data File_Data = 15.0000 1.0000 0.6341 0.9451 0.8784 0.5112 0.7295 0.5434 0.5559 0.3106 0.5248 0.6037 0.4813 0.6232 15.0000
阅读全文
摘要:Matlab kmeans聚类 rng('default') % For reproducibility X = [randn(100,2)*0.75+ones(100,2); randn(100,2)*0.5-ones(100,2); randn(100,2)*0.75]; [idx,C] = k
阅读全文
摘要:python k-means F:\PythonProject\K-Means import pandas as pd import numpy as np from sklearn.preprocessing import StandardScaler from sklearn.model_sel
阅读全文
摘要:引发了异常: 读取访问权限冲突。this-> 是 0xFFFFFFFFFFFFFE97。 程序“[4824] HGD_Project_202101.exe”已退出,返回值为 0 (0x0)。
阅读全文
摘要:QApplication类管理GUI应用程序的控制流和主要设置。 QApplication专门为qgui应用程序提供基于QWidget的应用程序所需的一些功能。它处理特定于小部件的初始化、终结。 对于任何使用Qt的GUI应用程序,无论应用程序在任何给定时间是否有0、1、2或更多窗口,都只有一个QAp
阅读全文
摘要:将此QWidget设置为活动窗口。 活动窗口是具有键盘输入焦点的可见顶级窗口。 此函数执行与在顶级窗口的标题栏上单击鼠标相同的操作。在X11上,结果取决于窗口管理器。如果要确保窗口也堆叠在顶部,还应该调用raise()。请注意,窗口必须可见,否则activateWindow()无效。 在Window
阅读全文
摘要:z = 3*(1-x).^2.*exp(-(x.^2) - (y+1).^2) - 10*(x/5 - x.^3 - y.^5).*exp(-x.^2-y.^2) - 1/3*exp(-(x+1).^2 - y.^2) ###########################
阅读全文
摘要:[x2,y2,z2] = sphere; c2 = z2; surf(x2,y2,z2,c2) caxis([-1 3]) ######################
阅读全文
摘要:测试 clc; clear; M2=[]; TIME2={}; %fid = fopen('2020-12-27-16-19-52.txt'); %fid = fopen('2020-12-17-09-21-11-1.txt'); %fid = fopen('2020-12-17-09-21-11-
阅读全文
摘要:QCamera Header: #include <QCamera>qmake: QT += multimediaInherits: QMediaObject Public Types class FrameRateRangeenum CaptureMode { CaptureViewfinder,
阅读全文
摘要:Header: #include <QSize>qmake: QT += core Public Functions QSize() QSize(int width, int height) QSize boundedTo(const QSize &otherSize) const QSize ex
阅读全文
摘要:QPainter Class The QPainter class performs low-level painting on widgets and other paint devices. Header: #include <QPainter> qmake: QT += gui Inherit
阅读全文
摘要:enum PenStyle { // pen style NoPen, SolidLine, DashLine, DotLine, DashDotLine, DashDotDotLine, CustomDashLine#ifndef Q_MOC_RUN , MPenStyle = 0x0f#endi
阅读全文
摘要:Qt绘制虚线 QPainter painterObj; QPen tmp; QVector<qreal>dashes; qreal space = 4; dashes << 3 << space << 3 << space << 3 << space << 3 << space << 3 << sp
阅读全文
摘要:Qt报错报错 #1. 打开Visual Studio Installer(一般在C:\Program Files (x86)\Microsoft Visual Studio\Installer这个路径下),找到Visual Studio 2019选择并升级到最新版本。 #2. 尝试登出账号再重新登入
阅读全文
摘要:QString list2 = "1,4,6,9"; QScriptValueList args3; //调用js方法时传入的参数 args3 << list2; QScriptValue func3; func3 = engine.globalObject().property("addNums"
阅读全文
摘要:gl-matrix.js /** * @fileoverview gl-matrix - High performance matrix and vector operations * @author Brandon Jones * @author Colin MacKenzie IV * @ver
阅读全文
摘要:Qt 3d basicshapes-cpp.pro android|ios|tvos|winrt { warning( "This example is not supported for android, ios, tvos, or winrt." ) } !include( ../example
阅读全文
摘要:yolov5 检测图片里面的对象 这是比较早的代码,偶尔碰见了打开看看,运行结果如下: import argparse import time from pathlib import Path import cv2 import torch import torch.backends.cudnn a
阅读全文
摘要:QTreeWidget双击事件 #include <QtWidgets/QWidget> public slots: void OnlineTreeViewDoubleClick(QTreeWidgetItem*,int); private: QTreeWidget* treeWidget_set;
阅读全文
摘要:Qt QPainter QBrush 填充区域 QBrush brush; brush.setColor(Qt::red);//设置颜色 brush.setStyle(Qt::SolidPattern); painter.setBrush(brush); painter.drawRect(rect3
阅读全文
摘要:Qt QWidget保存为图片 QPixmap pixmap = QPixmap::grabWidget(this); pixmap.save("D://1.jpg","JPG"); ###################################
阅读全文
摘要:Qt绘图面板中的对象拖拽 qdrawwidget.h #ifndef QDRAWWIDGET_H #define QDRAWWIDGET_H #include <QObject> #include <QWidget> #include <QFrame> #include <QPainter> #in
阅读全文
摘要:Qt绘制网格 mainwindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QPainter> #include <QDebug> namespace Ui { class MainWi
阅读全文