[Qt-interest] qtconfig in Mac OS X

Alessandro Portale Alessandro.Portale at trolltech.com
Sun Dec 27 19:42:51 CET 2009


Thiago Macieira schrieb:
>> I`m looking for the qtconfig tool, where we can change the font size and
>> look`n fell of Qt applications.
> 
> Sorry, that's an X11-only application.

qconfig it also compilable for Windows. I believe that it is commonly 
used for Qt/WinCE. Not sure though, if qconfig is great help for 
changing styles or font sizes, those things are nicely changeable at 
program startup (e.g. in the main function).
You can, however disable unneeded styles via qconfig, which will save 
some bytes.

I do not see a good reason why qconfig would not run on OSX.

<experimental>
IIRC, the required '-qconfig' switch of configure.sh is disabled for 
OSX, so using the resulting config header file is not straight forward. 
You could look into that header file and append its #defines to the 
configure.sh call.
</experimental>

<withoutwarranty>
A configure line that I successfully used with Qt 4.5 and 4.6 on OSX is:

./configure -static -release -universal -prefix $PWD -no-exceptions 
-no-stl -no-webkit -no-xmlpatterns -no-phonon -no-qt3support -no-opengl 
-D QT_NO_STYLE_CDE -D QT_NO_STYLE_CLEANLOOKS -D QT_NO_STYLE_MOTIF -D 
QT_NO_STYLE_PLASTIQUE -nomake examples -nomake demos -opensource 
-confirm-license

</withoutwarranty>

Good luck :)
Alessandro



More information about the Qt-interest-old mailing list