共 12 篇文章 |
|
Qt Embedded开发环境 阅151 转自haliiz 公众公开 11-02-15 19:17 |
-qt-sql-<driver> ...Enable a SQL <driver> in the QtSql library, by defaultnone are turned on.Enables the Qt 3 support functionality.Possible values for <driver>: [ pc bus linuxtp yopy vr41xx tslib qvfb ]-plugin-mouse-<driver> Enable mouse <driver> as a plugin to be linked toat runtime.no-... 阅119 转自lao_o 公众公开 11-02-15 19:16 |
Qt-embedded-linux移植要点QtQt-embedded-linux移植要点Qt。要设置环境变量QWS_MOUSE_PROTO ,例如:export QWS_MOUSE_PROTO=[:],其中的参数可以是MouseMan, IntelliMouse, Microsoft, VR41xx, LinuxTP, Yopy, Tslib and keys,driver specific options是一个标准设备,比如:dev/mouse,触摸屏的是/dev/ts。module linear在make Qt for Embed... 阅128 转自lao_o 公众公开 11-02-15 19:11 |
生成的 moc_xxx.cpp 中会自动包含 xxx.h 头文件,所以它可以被独立编译成目标文件(.o 或 .obj) 生成的 xxx.moc 是不会包含 xxx.cpp 的(要是包含就出问题了,能发现吧?),因此 xxx.moc 中没有类定义,它无法被独立编译,只能被 include 到 xxx.cpp 中。private:struct { // private data const QMetaObject *superdata; const char *stringdat... 阅847 转5 评0 公众公开 11-02-13 18:56 |
Qt在Windows下的入口点函数Windows 下C、C++的入口函数。一般来说,前者是 控制台程序 的入口函数,后者是 GUI 程序的入口函数。把各种平台下的入口函数封装起来,易于编译跨平台的程序(至少不用我们用预处理宏来写各种入口函数了) 入口函数与嵌入可执行文件的启动函数。Mingw运行时提供了两个入口点启动函数:如果 main 函数不存在,libmaingw... 阅4152 转5 评0 公众公开 11-02-13 18:55 |
main.o:main.cpp:(.text$_ZN6WidgetD1Ev[Widget::~Widget()]+0xb): undefined reference to `vtable for Widget''main.o:main.cpp:(.text$_ZN6WidgetD1Ev[Widget::~Widget()]+0x15): undefined reference to `vtable for Widget''widget.o:widget.cpp:(.text+0x39): undefined reference to `vtable for Widget''widge... 阅2813 转11 评0 公众公开 11-02-13 18:53 |
#include <qapplication.h>
#include <qpushbutton.h>g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. -o main.o main.cpp
main.cpp: In function ‘int main(int, char**)’:
... 阅1122 转1 评0 公众公开 10-04-21 22:39 |
该文档描述了将程序从Qt3引到Qt4的步骤。如果你还没有做出转移的决定,或者还不确定是否必要,可以先看一下Qt4提供的关键特性(key features)。也可以参考Moving from Qt 3 to Qt 4,了解下怎么写Qt3代码能更简单的转到Qt4。
其它的转移指导:
Porting to Qt 4(Drag and Drop)
Porting .ui Files to Qt 4
Porting to Graphics View
qt3to... 阅3078 转11 评0 公众公开 10-04-21 22:35 |
Qt中事件处理的顺序Qt中事件处理的顺序本站所有文章由本站和原作者保留一切权力,仅在保留本版权信息、原文链接、原文作者的情况下允许转载,转载请勿删改原文内容, 并不得用于商业用途。3.如果QApplication没有处理那些事件,然后就是交给事件接收对象了。4.经过了前面两级过滤后,如果事件还没被处理(前面函数的返回值为false),那么就会进入... 阅297 转自lao_o 公众公开 10-04-12 22:51 |