日期:2014-05-16 浏览次数:20717 次
#include <QApplication>我发现这个程序只能执行到hello->resize();而hello->show() 没有执行。
#include <QPushButton>
#include <stdio.h>
int main( int argc, char* argv[] )
{
QApplication a(argc, argv );
QPushButton* hello = new QPushButton( "Hello world!", 0 );
hello -> resize( 200, 100 );
hello -> show();
return a.exec();
}
#tslib path
export TSLIB_TSDEVICE=/dev/event0
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
#qt path
export QTDIR=/usr/qt4
export QTDIRlib=/usr/qt4/lib
export LD_LIBRARY_PATH=$QTDIRlib:$LD_LIBRARY_PATH
export QWS_MOUSE_PROTO=tslib:/dev/event0
export QWS_DISPLAY=LinuxFb:mmWidth76:mmHeight44:1
export QWS_SIZE=480x272
export QT_QWS_FONTDIR=/usr/qt4/lib/fonts
./configure \
-opensource \
-confirm-license \
-release -shared \
-embedded arm \
-xplatform qws/linux-arm-g++ \
-depths 16,18,24 \
-fast \
-optimized-qmake \
-pch \
-qt-sql-sqlite \
-qt-libjpeg \
-qt-zlib \
-qt-libpng \
-qt-freetype \
-little-endian -host-little-endian \
-no-qt3support \
-no-libtiff -no-libmng \
-no-opengl \
-no-mmx -no-sse -no-sse2 \
-no-3dnow \
-no-openssl \
-no-webkit \
-no-qvfb \
-no-phonon \
-no-nis \
-no-opengl \
-no-cups \
-no-glib \
-no-xcursor -no-xfixes -no-xrandr -no-xrender \
-no-separate-debug-info \
-nomake examples -nomake tools -nomake docs \
-qt-mouse-tslib \
-I/usr/local/tslib/include \
-L/usr/local/tslib/lib