上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 96 下一页
摘要: 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 阅读全文
posted @ 2021-05-20 09:42 西北逍遥 阅读(1007) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2021-05-20 09:03 西北逍遥 阅读(177) 评论(0) 推荐(0)
摘要: python k-means F:\PythonProject\K-Means import pandas as pd import numpy as np from sklearn.preprocessing import StandardScaler from sklearn.model_sel 阅读全文
posted @ 2021-05-19 14:58 西北逍遥 阅读(101) 评论(0) 推荐(0)
摘要: 引发了异常: 读取访问权限冲突。this-> 是 0xFFFFFFFFFFFFFE97。 程序“[4824] HGD_Project_202101.exe”已退出,返回值为 0 (0x0)。 阅读全文
posted @ 2021-05-18 22:14 西北逍遥 阅读(206) 评论(0) 推荐(0)
摘要: QApplication类管理GUI应用程序的控制流和主要设置。 QApplication专门为qgui应用程序提供基于QWidget的应用程序所需的一些功能。它处理特定于小部件的初始化、终结。 对于任何使用Qt的GUI应用程序,无论应用程序在任何给定时间是否有0、1、2或更多窗口,都只有一个QAp 阅读全文
posted @ 2021-05-17 13:09 西北逍遥 阅读(1035) 评论(0) 推荐(0)
摘要: 将此QWidget设置为活动窗口。 活动窗口是具有键盘输入焦点的可见顶级窗口。 此函数执行与在顶级窗口的标题栏上单击鼠标相同的操作。在X11上,结果取决于窗口管理器。如果要确保窗口也堆叠在顶部,还应该调用raise()。请注意,窗口必须可见,否则activateWindow()无效。 在Window 阅读全文
posted @ 2021-05-16 13:08 西北逍遥 阅读(1565) 评论(0) 推荐(0)
摘要: 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) ########################### 阅读全文
posted @ 2021-05-15 19:12 西北逍遥 阅读(226) 评论(0) 推荐(0)
摘要: [x2,y2,z2] = sphere; c2 = z2; surf(x2,y2,z2,c2) caxis([-1 3]) ###################### 阅读全文
posted @ 2021-05-14 13:19 西北逍遥 阅读(359) 评论(0) 推荐(0)
摘要: 测试 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- 阅读全文
posted @ 2021-05-13 22:14 西北逍遥 阅读(36) 评论(0) 推荐(0)
摘要: QCamera Header: #include <QCamera>qmake: QT += multimediaInherits: QMediaObject Public Types class FrameRateRangeenum CaptureMode { CaptureViewfinder, 阅读全文
posted @ 2021-05-12 22:12 西北逍遥 阅读(711) 评论(0) 推荐(0)
摘要: Header: #include <QSize>qmake: QT += core Public Functions QSize() QSize(int width, int height) QSize boundedTo(const QSize &otherSize) const QSize ex 阅读全文
posted @ 2021-05-11 19:48 西北逍遥 阅读(236) 评论(0) 推荐(0)
摘要: QPainter Class The QPainter class performs low-level painting on widgets and other paint devices. Header: #include <QPainter> qmake: QT += gui Inherit 阅读全文
posted @ 2021-05-10 08:50 西北逍遥 阅读(178) 评论(0) 推荐(0)
摘要: enum PenStyle { // pen style NoPen, SolidLine, DashLine, DotLine, DashDotLine, DashDotDotLine, CustomDashLine#ifndef Q_MOC_RUN , MPenStyle = 0x0f#endi 阅读全文
posted @ 2021-05-08 20:31 西北逍遥 阅读(312) 评论(0) 推荐(0)
摘要: Qt绘制虚线 QPainter painterObj; QPen tmp; QVector<qreal>dashes; qreal space = 4; dashes << 3 << space << 3 << space << 3 << space << 3 << space << 3 << sp 阅读全文
posted @ 2021-05-07 17:11 西北逍遥 阅读(3332) 评论(0) 推荐(0)
摘要: Qt报错报错 #1. 打开Visual Studio Installer(一般在C:\Program Files (x86)\Microsoft Visual Studio\Installer这个路径下),找到Visual Studio 2019选择并升级到最新版本。 #2. 尝试登出账号再重新登入 阅读全文
posted @ 2021-05-06 22:04 西北逍遥 阅读(647) 评论(0) 推荐(0)
摘要: QString list2 = "1,4,6,9"; QScriptValueList args3; //调用js方法时传入的参数 args3 << list2; QScriptValue func3; func3 = engine.globalObject().property("addNums" 阅读全文
posted @ 2021-05-05 21:42 西北逍遥 阅读(69) 评论(0) 推荐(0)
摘要: gl-matrix.js /** * @fileoverview gl-matrix - High performance matrix and vector operations * @author Brandon Jones * @author Colin MacKenzie IV * @ver 阅读全文
posted @ 2021-05-04 17:10 西北逍遥 阅读(255) 评论(0) 推荐(0)
摘要: Qt 3d basicshapes-cpp.pro android|ios|tvos|winrt { warning( "This example is not supported for android, ios, tvos, or winrt." ) } !include( ../example 阅读全文
posted @ 2021-05-04 16:22 西北逍遥 阅读(350) 评论(0) 推荐(0)
摘要: yolov5 检测图片里面的对象 这是比较早的代码,偶尔碰见了打开看看,运行结果如下: import argparse import time from pathlib import Path import cv2 import torch import torch.backends.cudnn a 阅读全文
posted @ 2021-05-04 11:10 西北逍遥 阅读(1164) 评论(0) 推荐(0)
摘要: QTreeWidget双击事件 #include <QtWidgets/QWidget> public slots: void OnlineTreeViewDoubleClick(QTreeWidgetItem*,int); private: QTreeWidget* treeWidget_set; 阅读全文
posted @ 2021-05-03 16:45 西北逍遥 阅读(2444) 评论(0) 推荐(0)
摘要: Qt QPainter QBrush 填充区域 QBrush brush; brush.setColor(Qt::red);//设置颜色 brush.setStyle(Qt::SolidPattern); painter.setBrush(brush); painter.drawRect(rect3 阅读全文
posted @ 2021-05-02 20:41 西北逍遥 阅读(1637) 评论(0) 推荐(0)
摘要: Qt QWidget保存为图片 QPixmap pixmap = QPixmap::grabWidget(this); pixmap.save("D://1.jpg","JPG"); ################################### 阅读全文
posted @ 2021-05-01 21:48 西北逍遥 阅读(955) 评论(0) 推荐(0)
摘要: Qt绘图面板中的对象拖拽 qdrawwidget.h #ifndef QDRAWWIDGET_H #define QDRAWWIDGET_H #include <QObject> #include <QWidget> #include <QFrame> #include <QPainter> #in 阅读全文
posted @ 2021-05-01 21:22 西北逍遥 阅读(756) 评论(0) 推荐(0)
摘要: Qt绘制网格 mainwindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QPainter> #include <QDebug> namespace Ui { class MainWi 阅读全文
posted @ 2021-05-01 15:47 西北逍遥 阅读(2121) 评论(0) 推荐(0)
摘要: ubuntu中编译好的Qt程序运行 luo@luo-ThinkPad-W540:QtProject$ luo@luo-ThinkPad-W540:QtProject$ cd build-HGD_ES-Desktop_Qt_5_12_0_GCC_64bit-Debug luo@luo-ThinkPad 阅读全文
posted @ 2021-04-30 16:05 西北逍遥 阅读(660) 评论(0) 推荐(0)
摘要: ubuntu qt5 编译libqsqlmysql.so 首先确保已经安装了mysql, 然后打开 /opt/Qt5.12.0/5.12.0/Src/qtbase/src/plugins/sqldrivers/mysql 目录查看是否存在 如果存在,进行libmysql.so文件的编译 root@l 阅读全文
posted @ 2021-04-29 15:29 西北逍遥 阅读(1015) 评论(0) 推荐(0)
摘要: Qt mysql 确保mysql已经安装 luo@luo-ThinkPad-W540:~$ luo@luo-ThinkPad-W540:~$ whereis mysql.h mysql: /usr/bin/mysql /usr/lib/mysql /etc/mysql /usr/include/my 阅读全文
posted @ 2021-04-29 08:31 西北逍遥 阅读(185) 评论(0) 推荐(0)
摘要: win10 cuda11.1 paddlepaddle-gpu (base) F:\> (base) F:\> (base) F:\> (base) F:\>conda create -n wind_paddle python==3.7 Collecting package metadata (cu 阅读全文
posted @ 2021-04-28 11:25 西北逍遥 阅读(1277) 评论(0) 推荐(0)
摘要: 桩是一种细长的木材、混凝土或钢结构构件,打入、喷射或以其他方式嵌入地面,以支撑荷载。桩也被称为深基础,其中荷载被转移到更深的地下层。 注:根据ISO 6707-1的定义:细长结构构件,基本位于地下,用于将力传递到地面以下的承重地层中。 注:浅基础将荷载转移到靠近其表面的地面上,用IfcFooting 阅读全文
posted @ 2021-04-27 21:26 西北逍遥 阅读(136) 评论(0) 推荐(0)
摘要: java遍历文件 package com.vfsd.test; import java.io.File; import java.io.IOException; public class ListFileName { public static void main(String[] args) { 阅读全文
posted @ 2021-04-26 21:37 西北逍遥 阅读(243) 评论(0) 推荐(0)
上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 96 下一页