自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (4)
  • 收藏
  • 关注

转载 Qt 之 QRoundProgressBar(圆形进度条)

QRoundProgressBar类能够实现一个圆形进度条,继承自QWidget,并且有和QProgressBar类似的API接口。| 版权声明:一去、二三里,未经博主允许不得转载。详细说明主要有以下特性:圆形进度条控件高度可定制的源码下载:Qt Circular Progress Bar WidgetQRoundProgressBar下载下载完后,进行解压缩,src目录...

2019-03-14 17:04:56 1205

转载 std::this_thread::yield()使用理解

摘选 stackoverflow 一段: http://stackoverflow.com/questions/11048946/stdthis-threadyield-vs-stdthis-threadsleep-forstd::this_thread::yield tells the implementation to reschedule the execution of threads, ...

2018-04-13 10:23:12 6887 1

转载 C++11实现简单生产者消费者模式

当前C++11已经实现了多线程、互斥量、条件变量等异步处理函数,并且提供了诸如sleep之类的时间函数,所以后面使用C++开发这一块的时候完全可以实现跨平台,无需在windows下写一套然后又在linux下写一套了。   本文用C++11实现了一个简单的生产者-消费者模式,生产者每1S将一个数值放到双向队列中,消费者每2S从双向队列中取出数据。[cpp] view

2018-04-11 14:15:08 870

转载 qt5 log

背景:一般情况下,我们调试版本会在code里面添加一些qDebug来帮助我们修改代码。但是当我们的软件版本发布出去,用户告诉我们软件使用出问题了,并且我们在自己的实验室无法复现问题怎么办?这个时候怎么依靠我们之前在代码里面添加的qDebug呢?只要用户动动小手,改个配置文件就会把原来代码里面的log输出到一个txt里,然后送给我们分析问题。方法:

2017-11-17 10:09:16 882

转载 QtWebkits如何向QtWebEngine过渡

1、上位机介绍   最近有个接了一个毕业设计的项目,内容很简单,就是解析北斗GPS的串口数据然后输出经纬度,但接过来觉得太简单,就发挥了主观能动性,增加了百度地图API,不但能实时定位,还能在地图上标识出位置信息,用的QT5.5。上位机运行图片如图所示:(O(∩_∩)O哈哈~  位置信息暴漏了,没关系,我已经不住这里了!!) 整体运行比较流畅。  原理就是界面上集成一个We

2017-07-19 18:19:33 731

转载 QWT使用出错

使用QWT例子oscilloscope出现如下错误:error LNK2001: unresolved external symbol "public: static struct QMetaObject const QwtPlot::staticMetaObject" (?staticMetaObject@QwtPlot@@2UQMetaObject@@B) 本来这个例子在exa

2017-05-15 16:11:53 1387

转载 QWT错误static struct QMetaObject const QwtPlot

QWT错误static struct QMetaObject const QwtPlot博客分类: QtQWT错误staticstructQMetaObject 使用QWT例子oscilloscope出现如下错误:error LNK2001: unresolved external symbol "public: static struct QMetaObj

2017-05-11 09:51:49 433

转载 C++中值传递、指针传递、引用传递的总结

C++中值传递、指针传递、引用传递的总结 收藏 1. 值传递:形参是实参的拷贝,改变形参的值并不会影响外部实参的值。从被调用函数的角度来说,值传递是单向的(实参->形参),参数的值只能传入,不能传出。当函数内部需要修改参数,并且不希望这个改变影响调用者时,采用值传递。void swap(int a,int b){     int temp;     temp=a;   

2015-05-21 11:23:22 418

转载 QT状态机QStatemachine

http://blog.csdn.net/fuyajun01/article/details/6106201http://www.cuteqt.com/?feed=rss2&tag=animation状态机顾名思义,应该有不同的状态在切换。上面状态机图中,我们提供了两种状态state1和state2。而状态的区分是由状态的属性来描述的,比如p1,p2…等等。从一

2013-10-12 08:58:00 2827

转载 modbus

㈠MODBUS规约MODBUS规约是MODICOM公司开发的一个为很多厂商支持的开放规约, Modbus 协议是应用于电子控制器上的一种通用语言。通过此协议,控制器相互之间、控制器经由网络(例如以太网)和其它设备之间可以通信。它已经成为一通用工业标准。有了它,不同厂商生产的控制设备可以连成工业网络,进行集中监控。最主要的是它被很多组态软件所兼容,开发速度较快,受到了很多工控厂商的追

2013-08-02 10:34:31 1357

转载 c++全局变量

(1)编译单元(模块)    在VC或VS上编写完代码,点击编译按钮准备生成exe文件时,编译器做了两步工作:第一步,将每个.cpp(.c)和相应的.h文件编译成obj文件;第二步,将工程中所有的obj文件进行LINK,生成最终.exe文件。    那么,错误可能在两个地方产生:一个,编译时的错误,这个主要是语法错误;一个,链接时的错误,主要是重复定义变量等。 

2013-08-01 13:33:52 574 1

转载 QGraphicsItem

这个类翻译了好久,实在是成员函数太多了,分享出来,希望对大家有用,多多支持哦~~ 详细介绍QGraphicsItem类是视图框架的一部分,是在一个QGraphicsScene中最基本的图形类,它为绘制你 自己的item提供了一个轻量级的窗口,包括声明item的位置,碰撞检测,绘制重载和item之间的相 互作用通过事件处理Qt提供了一系列标准的items对一些常见的图

2013-07-12 15:21:26 4514 1

react-map-gl

This library provides convenient wrappers around initializing and (to some degree) tracking the state of a Mapbox WebGL map. Because most of the functionality of Mapbox's JS API depends on the use of HTML5 canvases and WebGL, which React is not built to manipulate, the React component does not mirror all the functionality of Mapbox GL JS's Map class. You may access the native Mapbox API exposed by the getMap() function in this library. However, proceed with caution as calling the native APIs may break the connection between the React layer props and the underlying map state.

2019-03-14

uber's deck.gl

deck.gl is designed to make visualization of large data sets simple. It enables users to quickly get impressive visual results with limited effort through composition of existing layers, while offering a complete architecture for packaging advanced WebGL based visualizations as reusable JavaScript layers.

2019-03-14

优步开源webgl库

luma.gl was originally created in late 2015 as a fork of PhiloGL to provide high performance WebGL rendering capability for deck.gl - a 3D visualization framework for large scale data. With the increased adoption of the deck.gl framework, usage of luma.gl has also gradually increased. In addition, various contributors have started to create up their own custom deck.gl layers for their apps, which requires usage of luma.gl's classes and APIs. This triggered a major rewrite the documentation and the website. The arrival of WebGL2 was a major milestone in the WebGL landscape. With the release of luma.gl v4 in July 2017, luma.gl was positioned as a foundation library for high-performance GPU programming in JavaScript, and luma.gl v5 and v6 series releases have continued to provide incremental improvements in the WebGL2 and GPGPU areas.

2019-03-14

windows下的socket模型

windows下socket的模型分类,分为5种,供大家下载分享

2013-01-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除