
QT
文章平均质量分 73
pcliuguangtao
喜欢C/C++,有着黑客梦想,喜欢结交有志之士~~
展开
-
QT学习笔记(二):QWSServer class
1. QWSServer Class 为 Qt for Embeded Linux 封装了一个服务进程 .当你运行一个基于嵌入式平台的Qt程序时,它只能作为一个server或者连接到一个已经存在的server来运行。server和client进程有不同的职责: client进程执行应用程序特定的操作; server进程负责管理一个或多个client进程,同时负责指针操作,字符输入和原创 2012-02-02 15:07:21 · 8673 阅读 · 0 评论 -
Embeded QT 鼠标驱动流程和类结构分析
http://download.youkuaiyun.com/detail/pcliuguangtao/4084595 下载图片链接最近,刚做了触摸屏的QT驱动,使用的是 export QWS_MOUSE_PROTO='IntelliMouse:/dev/usbmouse' ,也就是IntelliMouse类型的设备驱动。水平方向的横线表示类的定义,竖直方向表示方法调用。原创 2012-02-15 18:46:32 · 1177 阅读 · 0 评论 -
Embedded Qt 编译配置说明
原文网址:http://www.cnitblog.com/zouzheng/archive/2010/07/06/67199.html当进入解压好的源码包后,使用./configure –help命令,可以获得相应帮助,那我们只要选取参数部分看看1. -release这个参数显而易见,就是编译Qt以发布版的模式进行,一般来说,最后系统完成后,库就应该是发布版。-rele转载 2012-02-12 09:08:46 · 1658 阅读 · 0 评论 -
Qt for Embedded Linux Display Management
Qt for Embedded Linux Display ManagementWhen rendering, the default behavior for each Qt for Embedded Linux client is to render its widgets into memory, while the server is responsible for putti转载 2012-03-09 16:34:52 · 809 阅读 · 0 评论 -
Qt for Embedded Linux Environment Variables
(http://doc.qt.nokia.com/4.6/qt-embedded-envvars.html#qws-display)These environment variables are relevant to Qt for Embedded Linux users.VariableDescriptionPOINTERCAL_FILE转载 2012-03-09 16:33:19 · 884 阅读 · 0 评论 -
QT和网页中的JavaScript函数相互调用的实现
下面的说明来自Qt源代码中的qwebpluginfactory.cpp文件中的介绍说明,引用一下。/*! \class QWebPluginFactory \since 4.4 \brief The QWebPluginFactory class is used to embed custom data types in web pages. \原创 2012-04-06 17:55:25 · 6594 阅读 · 0 评论 -
Qt插件系统的概要实例介绍
一、 对于每一种类型的插件,通常至少需要两个类: (1.) 一个是插件封装器类,它实现了插件通用的API函数; 比如QWSMouseHandler,其定义如下: class Q_GUI_EXPORT QWSMouseHandler{public:原创 2012-04-06 11:58:39 · 1313 阅读 · 0 评论 -
Qt界面字体大小设置和更改字体
在Qt中经常会涉及到界面字体大小的设置,默认字体一般比较小,特别是在移植到开发板上进行显示一般都要放大字体,因为开发板上液晶显示屏幕分辨率都是非常的小,跟电脑显示有很大差别。 一种整体界面字体设置的方法: 在main函数中添加程序: QFont font = app .fon原创 2012-04-07 18:09:56 · 11037 阅读 · 1 评论 -
修改Embedded QT鼠标驱动支持IRTOUCH触摸屏
背景知识:http://doc.qt.nokia.com/4.6/qt-embedded-architecture.html Qt for Embedded Linux Architecture http://doc.qt.nokia.com/4.6/qt-embedded-pointer.html#available-drivers Qt for Embedded Linux原创 2012-04-07 18:28:56 · 2948 阅读 · 0 评论 -
QT程序字体大小和旋转的程序参数设置方式
下面说下具体移植,首先播放器界面自然必须是横向的,QT界面必须旋转,这需要在编译QTE库的时候,加入参数:-qt-gfx-transformed -qt-gfx-linuxfb运行前设置环境变量:export QWS_DISPLAY='Transformed:Rot90' 根据情况旋转90度或270度。原创 2012-04-07 18:33:40 · 2186 阅读 · 0 评论 -
自定义的Qt程序打印调试信息的方法
在程序的开发过程中,往往需要添加打印消息,来确定程序Bug的来源。工作的要求是使用qmake生成Makefile,然后,再使用make来进行构建目标程序。1.首先,定义自己的打印函数,比如:#ifndef SHINECOMMON_H#define SHINECOMMON_H#include #ifdef SHINEDEBUG #define原创 2012-04-10 14:26:58 · 2873 阅读 · 0 评论 -
自己遇到的BUG(一)
1. 访问一个已被删除对象的成员 具体场景:pMagRoll指向一个变量,然后在程序中usleep(1000*pMsgRoll->speed)来控制显示的速度,但是pMsgRoll是一个临界资源,会被其他线程修改,最后导致某个变量被删除以后导致速度变得不可控制。 解决方法:定义一个和临界变量无关的变量,用变量来保存我们要使用到的临界对象的属性,而不是直接使用 指针会的临原创 2012-04-16 16:36:27 · 1022 阅读 · 0 评论 -
QT的信号和槽机制:Signals and Slots
Signals and SlotsSignals and slots are used for communication between objects. The signals and slots mechanism is a central feature of Qt and probably the part that differs most from the features转载 2012-02-10 10:22:00 · 1325 阅读 · 0 评论 -
qmake Tutorial
qmake TutorialThis tutorial teaches you how to use qmake. We recommend that you read the qmake user guide after completing this tutorial.Starting off SimpleLet's assume that you have jus转载 2012-02-08 09:40:27 · 880 阅读 · 0 评论 -
QT学习笔记(三):在嵌入式Linux平台上部署QT程序
JUST FOR QT 4.6Deploying Qt for Embedded Linux ApplicationsThe procedure of deploying an Qt application on Qt for Embedded Linux is essentially the same as the deployment procedure on X1转载 2012-02-02 15:32:01 · 1391 阅读 · 0 评论 -
QT学习笔记(五):嵌入式Linux下的QT框架
JUST FOR QT 4.6(这篇文章总结了4.6下嵌入式大部分的重要内容,对以后编写相应的设备驱动很有指导意义)Qt for Embedded Linux ArchitectureA Qt for Embedded Linux application requires a server application to be running, or to be th转载 2012-02-02 17:50:34 · 1672 阅读 · 0 评论 -
QT学习笔记(六):Embedded Linux QT Display Management
Qt for Embedded Linux Display ManagementWhen rendering, the default behavior for each Qt for Embedded Linux client is to render its widgets into memory, while the server is responsible for put转载 2012-02-03 18:01:06 · 1347 阅读 · 0 评论 -
QT学习笔记(七):嵌入式Linux下的QT框架
JUST FOR QT 4.6(Qt 的plugin子系统提供了很好的可扩展性,感觉重要的就是Mouse和KeyBoard的驱动编写)How to Create Qt PluginsQt provides two APIs for creating plugins:A higher-level API for writing extensions to转载 2012-02-03 18:23:29 · 2115 阅读 · 0 评论 -
工作札记(二):设置Embeded QT程序鼠标指针为透明
设置鼠标透明: QApplication a(argc, argv); QPixmap pixMouse(32, 32); pixMouse.fill(QColor(0, 0, 0, 0)); a.setOverrideCursor(QCursor(pixMouse));或: 直接一句: a.setOverrideCursor(Qt::Bl原创 2012-02-02 11:49:26 · 1848 阅读 · 0 评论 -
QT学习笔记(一):QApplication class
1. QApplication class 控制着整个GUI程序的控制流和主要的配置。QApplication包含了“主消息循环 ”。 主消息循环会接受所有的窗口系统或者其他来源的消息,并且进行处理和分发;同时,QApplication 也控制 着该应用程序的初始化,终止化,以及会话管理(session management). 另外,QApplication 也控制着系统原创 2012-02-02 15:06:37 · 3011 阅读 · 0 评论 -
QT学习笔记(四):在不同平台上部署QT程序概述
JUST FOR QT 4.6Deploying Qt ApplicationsDeploying an Qt application does not require any C++ programming. All you need to do is to build Qt and your application in release mode, followin转载 2012-02-02 15:41:17 · 1564 阅读 · 0 评论 -
QT学习笔记(八):嵌入式Linux下的QT程序的运行及相应的参数
JUST FOR QT 4.6(主要是说明了同一屏幕怎样显示不同窗口的功能,还有就是详细的程序参数的说明。)Running Qt for Embedded Linux ApplicationsA Qt for Embedded Linux application requires a server application to be running, or to b转载 2012-02-06 15:07:55 · 2223 阅读 · 0 评论 -
QT学习笔记(九):创建QT的共享库
Creating Shared LibrariesThe following sections list certain things that should be taken into account when creating shared libraries.Using Symbols from Shared LibrariesSymbols - functions, v转载 2012-02-06 15:22:07 · 1056 阅读 · 0 评论 -
QT学习笔记(十):嵌入式Linux QT类鼠标处理说明
Qt for Embedded Linux Pointer HandlingWhen running a Qt for Embedded Linux application, it either runs as a server or connects to an existing server. The mouse driver is loaded by the server转载 2012-02-06 16:28:16 · 2145 阅读 · 0 评论 -
qmake Variable Reference
Home · All Classes · All Functions · Overviews[Previous: qmake Reference] [Contents] [Next: qmake Function Reference]qmake Variable Referenceqmake's fundamental behavior is influenced转载 2012-02-08 10:22:50 · 2890 阅读 · 0 评论 -
qmake Function Reference
Home · All Classes · All Functions · Overviews[Previous: qmake Variable Reference] [Contents] [Next: Configuring qmake's Environment]qmake Function Referenceqmake provides built-in fun转载 2012-02-08 10:23:35 · 947 阅读 · 0 评论 -
一个直接读写framebuffer的代码
#include #include #include #include #include #include #include #include int main(int argc, char const *argv[]){ int len = 0; unsigned int color = 0; if (argc < 7) { printf("Usage:%s fb原创 2012-04-19 16:19:51 · 1633 阅读 · 0 评论