-
fangkuai
说明: 根据源代码修改的简单俄罗斯方块游戏源码,可以移植到到嵌入式开发板,修改后的源码带触摸屏控制。有些功能还需要大家完善。(According to the source code to modify a simple Tetris game source code, can be ported to the embedded development board, the modified source code with touch screen control. We also need to improve some functions.)
- 2011-03-21 13:39:38下载
- 积分:1
-
flashprogrammer
使用QT编写的一个串口升级工具,升级协议采用TI的LM3S系列的bootloader串口协议。(A serial upgrade tool, written using QT upgrade protocol using of TI' s LM3S series the bootloader serial port protocol.)
- 2020-12-24 21:19:05下载
- 积分:1
-
qt简易浏览器
看到很多人在查找使用Qt如何能做出浏览器的效果,网上却没有这样的例子,闲聊无事做了一个简单的demo ,实现了浏览,拖拽创建新窗口,拖拽停靠等功能(后两个功能我限制了只有多余一个标签时才可拖拽可自行根据需求修改),样式等没有做处理可自行qss处理,这只是个思路,可在基础上扩展, Qt版本是5.1, 显示网页使用的是QWebView,QWebPage,如果是5.4以上版本可以使用QWebEngineView和QWebEnginePage,后者使用谷歌内核对html5支持比前者优秀,但是目前尚不太稳定。 直接上代码
- 2022-01-26 05:13:37下载
- 积分:1
-
qt 快速读取excel实例代码
#Qt Windows 下快速读写Excel指南很多人搜如何读写excel都会看到用`QAxObject`来进行操作,很多人试了之后都会发现一个问题,就是慢,非常缓慢!因此很多人得出结论是`QAxObject`读写excel方法不可取,效率低。后来我曾试过用ODBC等数据库类型的接口进行读写,遇到中文嗝屁不说,超大的excel还是会读取速度慢。最后,看了一些开源的代码后发现,Windows下读取excel,还是用`QAxObject`最快!没错,就是用`QAxObject`读写最快!!!大家以后读取excel时(win下),不用考虑别的方法,用`QAxObject`就行,速度杠杠的,慢是你操作有误!下面就说说咋能提高其读取效率。#读取excel慢的原因这里不说如何打开或生成excel,着重说说如何快速读取excel。网上搜到用Qt操作excel的方法,读取都是使用类似下面这种方法进行:```C QVariant ExcelBase::read(int row, int col){ QVariant ret; if (this->sheet != NULL && ! this->sheet->isNull()) { QAxObject* range = this->sheet->querySubObject("Cells(int, int)", row, col); //ret = range->property("Value"); ret = range->dynamicCall("Value()"); delete range; } return ret;}```读取慢的根源就在于`sheet->querySubObject("Cells(int, int)", row, col)`试想有10000个单元就得调用10000次`querySubObject`,网络上90%的教程都没说这个`querySubObject`产生的`QAxObject*`最好进行手动删除,虽然在它的父级`QAxObject`会管理它的内存,但父级不析构,子对象也不会析构,若调用10000次,就会产生10000个`QAxObject`对象得益于[QT快速读取数据量很大的Excel文件](http://blog.csdn.net/a1069962325/article/details/49514377)此文,下面总结如何快速读写excel#快速读取excel文件原则是一次调用`querySubObject`把所有数据读取到内存中VBA中可以使用`UsedRange`把所有用到的单元格范围返回,并使用属性`Value`把这些单元格的所有值获取。这时,获取到的值是一个table,但Qt把它变为一个变量QVariant来储存,其实实际是一个`QList`,此时要操作里面的内容,需要把这个`QVariant`转换为`QList`先看看获取整个单元格的函数示意(这里ExcelBase是一个读写excel的类封装):```C QVariant ExcelBase::readAll(){ QVariant var; if (this->sheet != NULL && ! this->sheet->isNull()) { QAxObject *usedRange = this->sheet->querySubObject("UsedRange"); if(NULL == usedRange || usedRange->isNull()) { return var; } var = usedRange->dynamicCall("Value"); delete usedRange; } return var;}```
- 2020-05-28下载
- 积分:1
-
ele
说明: 自动化测试工具,便于自动化测试的实现,忘下载(automation testing)
- 2011-04-06 11:27:13下载
- 积分:1
-
extract_feature
此工程实现提取jpeg图像的DCT系数首字母概率作为jpeg重压缩检测的特征,以此特征训练出分类模板,可以检测出一张jpeg图像是单压缩还是重压缩。(Works to achieve this extract jpeg image DCT coefficients of the first letter of the probability of detection as a jpeg heavy compression feature, this feature trained classification templates that can detect a single jpeg image compression or recompression.)
- 2021-04-02 21:39:07下载
- 积分:1
-
GLDrawingProject
Qt+opengl实现用鼠标控制视图角度(Qt+opengl achieved using the mouse to control the view angle)
- 2020-09-29 18:17:44下载
- 积分:1
-
用QT写的C/C++的设计模式源代码
用QT写的C/C++的设计模式源代码 用QT实现的设计模式的代码(标准23种模式+简单工厂模式,总共24个模式)。
- 2023-07-26 23:40:06下载
- 积分:1
-
PBOC_DEBUG_VERSION20130727
使用 QT GUI 编程,pboc编程简单例子,可参照学习。(Using QT GUI programming, pboc programming simple example, you can refer to learn.)
- 2013-08-06 23:13:31下载
- 积分:1
-
translucent
这个是用QT源码编写的透明按钮代码,和QT4里面不一样的哦!!!(trancet pushButton by Linux QT source !!!)
- 2012-02-03 16:32:37下载
- 积分:1