
Qt
文章平均质量分 67
ape_neu
这个作者很懒,什么都没留下…
展开
-
Qt中的动态链接库编程
1:Qt中的动态链接库编程 使用C++面向对象的类编写DLL是要注意很多细节的,主要是二进制(ABI)兼容问题。COM是一个很成功的例子,只要符合COM的规范,我们就能编写出很好的DLL来,然而COM是微软私生的,要想跨平台,我们还得另找它路。 Qt的跨转载 2011-08-11 15:58:52 · 7570 阅读 · 0 评论 -
Custom Type In Qt
在此收录几篇关于Qt中Custom Type 自定义类型如何在Qt元系统中使用的文章。1介绍如何自定义类型。Custom Type Examplehttp://qt-project.org/doc/qt-4.8/tools-customtype.html2.介绍如何应用在元对象系统中--作为信号或者槽的参数Custom Type Sending Exampl翻译 2012-07-22 13:56:21 · 800 阅读 · 0 评论 -
Qt源码分析之信号和槽机制
原文:http://blog.youkuaiyun.com/oowgsoo/article/details/1529411Qt的信号和槽机制是Qt的一大特点,实际上这是和MFC中的消息映射机制相似的东西,要完成的事情也差不多,就是发送一个消息然后让其它窗口响应,当然,这里的消息是广义的说法,简单点说就是如何在一个类的一个函数中触发另一个类的另一个函数调用,而且还要把相关的参数传递过去.好像转载 2012-07-19 23:09:30 · 594 阅读 · 0 评论 -
Qt调试
Locals and ExpressionsWhenever a program stops under the control of the debugger, it retrieves information about the topmost stack frame and displays it in the Locals and Expressions view. The Local原创 2012-07-08 21:54:44 · 1860 阅读 · 0 评论 -
Qt预编译头
在使用winpcap库开发时,需要将HAVE_REMOTE加入预编译头。官方文档解释如下:If your program uses Win32 specific functions of WinPcap, remember to include WPCAP among the preprocessor definitions.If your program uses the rem原创 2012-07-05 18:59:10 · 2063 阅读 · 0 评论 -
Qt 4访问Sqlite数据库
sqlite的优势1、免配置,和access一样,只要把数据库文件通过ftp上传到服务器上就可以使用,不需要服务器的额外支持2、备份方便,因为只是一个文件,只要复制一份该文件,就能备份整个数据库3、虽然是轻量级数据库,但他支持最大 2tb 的单个库文件。4、快,无转载 2011-08-11 16:09:20 · 774 阅读 · 0 评论 -
解决Ogre的渲染窗口無法固定大小,隨著MainWindow的變化而變化
我們現在來看看之前提出的需求:如果你直接這樣做:?12345QScrollArea *pScroll =new pScroll; OgreWidget *pOgreWidget =new O转载 2011-08-12 15:19:28 · 973 阅读 · 1 评论 -
Graphics View Framework Key Features(简译)未完
Zooming and rotating(缩放与旋转)QGraphicsView 通过 QGraphicsView::setMatrix()支持与 QPainter 同样的仿射变换. 例如缩放与旋转……下面的例子来说明如何在QGraphicsView子类中实现缩放原创 2011-08-12 10:16:30 · 1190 阅读 · 1 评论 -
How can I invoke functions on QObjects from another thread?
How to call a function from one thread on a QObject in another thread.The most basic operation is to post an event to the object in the other thread. The event loop in the target objects thread wi转载 2012-07-22 11:36:23 · 494 阅读 · 0 评论