首页| 论坛| 消息

标题:菜鸟问题:qt编程的过程和qtopia的编程有什么不一样
作者:jinliang516
日期:2006-11-20 11:19
内容:

我要做一个嵌入式的图形界面,就用的qtopia,但我是新手,在网上找啊找,都只看见QT编程的资料,
请问qt编程的过程和qtopia的编程有什么不一样吗?有专门的qtopia编程的书吗?
还有一个问题:我的机器里好像装系统的时候装了QT,我用rpm -qa | grep qt命令看了一下,结果如下:
qt-3.1.1-6
qtcups-2.0-15
qtopia-free-1.7.0-2
可是我自己装了qt/x11-2.3.2,qt/embedded-2.3.7,qtopia-1.7.0(用rpm包装的)
那个qt-3.1.1-6是系统的吗?那我自己装的了?还有那个qtcups是什么啊?
各位xdjm帮帮忙啊!!!!!!


#1 [cavendish 11-20 16:18]
目前世界上也没有专门针对qtopia的编程书籍
还是建议你多看看trolltech的官方文档
另外可以去http://www.qtopia.org.cn/phpBB2/看看
qtopia就是在qte基础上的
针对嵌入式设备的一个套件
qte应用可以在qtopia上直接跑的
#2 [jinliang516 11-20 21:31]
多谢版主了!!!
还有一个问题:我在linux下用eclipse编了一个用c++写的helloworld程序,可是编译的时候出现一些问题:
/tmp/ccbaGRN3.o(.text+0x23): In function `main':
: undefined reference to `QApplication::QApplication(int&, char**)'
/tmp/ccbaGRN3.o(.text+0x3b): In function `main':
: undefined reference to `QString::QString(char const*)'
/tmp/ccbaGRN3.o(.text+0x51): In function `main':
: undefined reference to `QPushButton::QPushButton(QString const&, QWidget*, char const*)'
/tmp/ccbaGRN3.o(.text+0xa4): In function `main':
: undefined reference to `QPushButton::resize(int, int)'
/tmp/ccbaGRN3.o(.text+0xba): In function `main':
: undefined reference to `QApplication::setMainWidget(QWidget*)'
/tmp/ccbaGRN3.o(.text+0xcc): In function `main':
: undefined reference to `QWidget::show()'
/tmp/ccbaGRN3.o(.text+0xdb): In function `main':
: undefined reference to `QApplication::exec()'
/tmp/ccbaGRN3.o(.text+0xf3): In function `main':
: undefined reference to `QPushButton::~QPushButton ()'
/tmp/ccbaGRN3.o(.text+0x102): In function `main':
: undefined reference to `QApplication::~QApplication ()'
/tmp/ccbaGRN3.o(.text+0x12e): In function `main':
: undefined reference to `QPushButton::~QPushButton ()'
/tmp/ccbaGRN3.o(.text+0x151): In function `main':
: undefined reference to `QApplication::~QApplication ()'
/tmp/ccbaGRN3.o(.gnu.linkonce.t._ZN7QStringD1Ev+0x21): In function `QString::~QString ()':
: undefined reference to `QString::shared_null'
/tmp/ccbaGRN3.o(.gnu.linkonce.t._ZN7QStringD1Ev+0x29): In function `QString::~QString ()':
: undefined reference to `QString::shared_null'
/tmp/ccbaGRN3.o(.gnu.linkonce.t._ZN7QStringD1Ev+0x3a): In function `QString::~QString ()':
: undefined reference to `QStringData::deleteSelf()'
collect2: ld returned 1 exit status
make: *** [he ..
#3 [cavendish 11-20 23:08]
初学不建议使用eclipse
因为qt需要moc
qt 2.x/qte 2.x/qtopia 1.7以下建议看tmake
qt 3.x以上/qtopia 2.x以上建议看qmake

回复 发表
主题 版块