PDA

View Full Version : QFont problem.



anafor2004
17th June 2008, 08:22
hi, every body
I have a small problem. I want to change font size of my form related to the compiler. If I use x86 , i want it to set to 28 font size, if i use arm compiler for qtopia, i want it to set to 32 font size.
is it possible ?

aamer4yu
18th June 2008, 11:32
I dont have any idea about compiling on arm compilers, but can suggest the following -

1) Create a macro based on compiler and use the font as desired

2) If u wanna do it programatically, try some command which runs either on x86 or arm. In that way u can guess what type compiler it is and use it to set font.

Hope this helps :)

jpn
18th June 2008, 17:25
Q_WS_QWS (http://doc.trolltech.com/4.4/qtglobal.html#Q_WS_QWS) macro is defined on Qt for Embedded Linux.