Home News FleaC with Qt
News
FleaC with Qt PDF Print E-mail
Written by Pekka Niskanen   
Monday, 11 January 2010 12:35
If you haven't noticed it yet, FleaC can be used also with Qt. This can be a justifiable case while waiting for the final releases of Qt Mobile Extensions. Here are the rules to follow:

Add fleac.mmp to the project file. If using e.g. Carbide.c++, you can't modify mmp file (in the same way as in "traditional" Symbian applications, see: http://www.fleasome.com/productlist/fleac/docu/startup), but you have to add a new line to the pro file:

MMP_RULES += "$${LITERAL_HASH}include <fleac.mmp> "

This is all!

Then, in the source code (or header file), just include the needed headers:

#include <fleac.h>
#include <fleac/messaging.h>    // if FleaC Messaging API needed


...and call FleaC classes in the same way as earlier.

If needed to make conversions between FString(s) and QString(s), it is quite easy:

FString fstr = "Iivantiira";
QString qstr = fstr.ToAscii().DataConst();

QString qstr = "Lentiira";
FString fstr = (const char *) qstr.data();

Last Updated ( Monday, 11 January 2010 15:30 )