Thanks blackhawk..
everything is working fine...
are all widgets are mapped to Z{WidgetName}, as in code MainWidget is mapped to ZMainWidget. [ is QPushButton is mapped to ZQPushButton? ]
Thanks,
Vishal
Step 1 is enough to resolve your problem, helloezx no need the dropin folder.
Thanks blackhawk..
everything is working fine...
are all widgets are mapped to Z{WidgetName}, as in code MainWidget is mapped to ZMainWidget. [ is QPushButton is mapped to ZQPushButton? ]
Thanks,
Vishal
No. Most QT widgets are present, but there are EZX ones added. These are UTIL_* and Z* widgets. In most cases QT widgets are sufficient, but sometimes EZX ones are preferred, because they use EZX native styling. And, for example, QMultiLineEdit is ugly and buggy when ZMultiLineEdit is working ok and comfortable.
Getting main screen of an app is pretty straightfoward. But I need to know hot get the screen when flip is closed (so i could try to paint/show some gui). I've looked around the forum, but couldn't find anything usefull. Someone got any ideas where to look ?
I have a question to ask, would you mind helping me a moment:
When i compile helloezx, I used blackhawk SDK and add two lines to zwmainwidget.h:
virtual int setTitleBarWidget(QLabel*);
QWidget *getTitleBarWiget(void);
after that i compile and this happen:
$ make
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -mcpu=iwmmxt
-mtune=iwmmxt -DNO_DEBUG -I/opt/crosstool/gcc-3.3.6-glibc-2.3.2/arm-linux/arm-l
inux/include -I/opt/dev-ezx/e680i/include -I/opt/dev-ezx/e680i/include/ezx -I/op
t/dev-ezx/e680i/include/qt -o HelloEZX.o HelloEZX.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -mcpu=iwmmxt
-mtune=iwmmxt -DNO_DEBUG -I/opt/crosstool/gcc-3.3.6-glibc-2.3.2/arm-linux/arm-l
inux/include -I/opt/dev-ezx/e680i/include -I/opt/dev-ezx/e680i/include/ezx -I/op
t/dev-ezx/e680i/include/qt -o main.o main.cpp
/opt/dev-ezx/bin/moc HelloEZX.h -o moc_HelloEZX.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -mcpu=iwmmxt
-mtune=iwmmxt -DNO_DEBUG -I/opt/crosstool/gcc-3.3.6-glibc-2.3.2/arm-linux/arm-l
inux/include -I/opt/dev-ezx/e680i/include -I/opt/dev-ezx/e680i/include/ezx -I/op
t/dev-ezx/e680i/include/qt -o moc_HelloEZX.o moc_HelloEZX.cpp
arm-linux-g++ -Wl,-rpath-link,/opt/dev-ezx/e680i/lib/ezx/lib,-rpath-link,/opt/de
v-ezx/e680i/lib/ezx/lib/inputmethods -o HelloEZX HelloEZX.o main.o moc_HelloEZX.
o -L/opt/crosstool/gcc-3.3.6-glibc-2.3.2/arm-linux/arm-linux/lib -L/opt/dev-ezx
/e680i/lib -L/opt/dev-ezx/e680i/lib/ezx/lib -L/opt/dev-ezx/lib -lezxappbase-xsca
le-r -lqte-mt-xscale-r -lezxjpeg-xscale-r -lezxnotification-xscale-r
HelloEZX.o(.text+0xac): In function `HelloEZX::HelloEZX[not-in-charge]()':
: undefined reference to `ZMainWidget::setTitleBarWidget(QWidget*)'
HelloEZX.o(.text+0x33c): In function `HelloEZX::HelloEZX[in-charge]()':
: undefined reference to `ZMainWidget::setTitleBarWidget(QWidget*)'
moc_HelloEZX.o(.gnu.linkonce.r._ZTV8HelloEZX+0x1f0): undefined reference to `ZMa
inWidget::setTitleBarWidget(QWidget*)'
collect2: ld returned 1 exit status
make: *** [HelloEZX] Error 1
I already add two lines, how can i resolve this error?
Thank you very much!!
Last edited by e398bk; 06-29-2008 at 06:33 AM.
This is my helloezx.pro
and this is make fileTEMPLATE = app
CONFIG = qt warn_on release
HEADERS = HelloEZX.h
SOURCES = HelloEZX.cpp
main.cpp
INTERFACES =
#############################################################################
# Makefile for building HelloEZX
# Generated by tmake at 13:30, 2008/06/29
# Project: HelloEZX
# Template: app
#############################################################################
####### Compiler, tools and options
CC = arm-linux-gcc
CXX = arm-linux-g++
CFLAGS = -pipe -Wall -W -O2 -mcpu=iwmmxt -mtune=iwmmxt -DNO_DEBUG
CXXFLAGS= -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -mcpu=iwmmxt -mtune=iwmmxt -DNO_DEBUG
INCPATH = -I$(ARM_DEV_DIR)/include -I$(QTDIR)/include -I$(QTDIR)/include/ezx -I$(QTDIR)/include/qt
LINK = arm-linux-g++
LFLAGS = -Wl,-rpath-link,$(QTDIR)/lib/ezx/lib,-rpath-link,$(QTDIR)/lib/ezx/lib/inputmethods
LIBS = $(SUBLIBS) -L$(ARM_DEV_DIR)/lib -L$(QTDIR)/lib -L$(QTDIR)/lib/ezx/lib -L/lib -lezxappbase-xscale-r -lqte-mt-xscale-r -lezxjpeg-xscale-r -lezxnotification-xscale-r
MOC = $(EZXDIR)/bin/moc
UIC = $(EZXDIR)/bin/uic
TAR = tar -cf
GZIP = gzip -9f
####### Files
HEADERS = HelloEZX.h
SOURCES = HelloEZX.cpp
main.cpp
OBJECTS = HelloEZX.o
main.o
INTERFACES =
UICDECLS =
UICIMPLS =
SRCMOC = moc_HelloEZX.cpp
OBJMOC = moc_HelloEZX.o
DIST =
TARGET = HelloEZX
INTERFACE_DECL_PATH = .
####### Implicit rules
.SUFFIXES: .cpp .cxx .cc .C .c
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: $(TARGET)
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
moc: $(SRCMOC)
tmake: Makefile
Makefile: HelloEZX.pro
tmake HelloEZX.pro -o Makefile
dist:
$(TAR) HelloEZX.tar HelloEZX.pro $(SOURCES) $(HEADERS) $(INTERFACES) $(DIST)
$(GZIP) HelloEZX.tar
clean:
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET)
-rm -f *~ core
####### Sub-libraries
###### Combined headers
####### Compile
HelloEZX.o: HelloEZX.cpp
HelloEZX.h
main.o: main.cpp
HelloEZX.h
moc_HelloEZX.o: moc_HelloEZX.cpp
HelloEZX.h
moc_HelloEZX.cpp: HelloEZX.h
$(MOC) HelloEZX.h -o moc_HelloEZX.cpp
everything ok, I solved it myselft. start coding for my e680 hehe
Download the pdf of the book here
C++ GUI Programming With Qt 3 - Free Book Download
(As given by Eakrin....in the 9th post earlier..)
Thanks...Eakrin....Nice Job....Lol....
The QT4 one in pdf
RapidShare: Easy Filehosting
the command "progen -o helloezx.pro" is not working for me....it gives this error:
"bash: /opt/dev-ezx/bin/progen: /usr/bin/perl: bad interpreter: No such file or directory"
please help me....eakrin