Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3399281
  • 博文数量: 864
  • 博客积分: 14125
  • 博客等级: 上将
  • 技术积分: 10634
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-27 16:53
个人简介

https://github.com/zytc2009/BigTeam_learning

文章分类

全部博文(864)

文章存档

2023年(1)

2021年(1)

2019年(3)

2018年(1)

2017年(10)

2015年(3)

2014年(8)

2013年(3)

2012年(69)

2011年(103)

2010年(357)

2009年(283)

2008年(22)

分类: C/C++

2009-04-01 20:05:29

我使用arm-linux-gcc 3.4.1交叉编译 qt embedded 4.4.3成功了,在2440的板上可以运行例子,但是有一个问题:不能使用text edit的select函数。运行demo的textedit例子可以显示html文件内容,但是如果使用鼠标或是touchpanel选择文本,则程序死机,cpu占用很高!
我编译了一个debug版本的就没有这个问题,但是debug版本的lib很大,我想使用release版本,
大家遇到过这个问题吗?下面是我的配置命令
#!/bin/sh
./configure -DQT_QLOCALE_USES_FCVT \
  -prefix /usr/local/qt-arm \
  -release -shared \
  -fast -no-largefile \
    -make libs -make tools -nomake examples -nomake demos \
  -no-stl -pch \
  -no-qt3support \
  -qt-sql-sqlite \
  -no-accessibility \
  -qt-libjpeg -qt-gif  -qt-libtiff  -qt-libmng \
  -qt-zlib \
  -qt-libpng \
  -qt-freetype \
  -no-openssl \
  -optimized-qmake \
  -no-phonon \
  -no-nis \
  -no-opengl \
  -no-cups \
  -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-xkb -no-sm \
  -no-xinerama -no-xshape \
  -no-separate-debug-info \
  -xplatform qws/linux-arm-g++ \
  -embedded arm \
  -depths 16 \
  -no-qvfb \
  -qt-gfx-linuxfb -no-gfx-qvfb -no-gfx-vnc -no-gfx-transformed -no-gfx-multiscreen \
  -qt-kbd-usb -qt-kbd-tty -no-kbd-sl5000 -no-kbd-yopy -no-kbd-vr41xx -no-kbd-qvfb\
  -qt-mouse-tslib -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-bus -no-mouse-yopy -no-mouse-vr41xx -no-mouse-qvfb \
  -no-glib \
  -confirm-license

下面是 一个测试程序 不能运行,如果去掉view->selectAll();就可以运行了!
int main( int argc, char **argv )
{
    //Q_INIT_RESOURCE(t1);
    QApplication a(argc, argv);

        qDebug() << "in " << __FUNCTION__;
    //QLabel * label = new QLabel(QObject::tr("hello word!"));
    //QTextEdit *editor = new QTextEdit();
#if 1
    QPlainTextEdit *view = new QPlainTextEdit(QObject::tr("page page"));
    view->setWindowTitle(QObject::tr("Page Source"));
    view->setMinimumWidth(480);
    view->selectAll();
    view->show();
#endif
}
 
问题解决
Qpaintengine_raster.cpp文件中的QT_FAST_SPANS不能定义
阅读(1251) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~