Home · Examples 


Advanced Techniques

In this chapther, we will examine advanced use of the generator. What we teach is not necessary to map a C++ library sucessfully, but will help improving performance of the generated Java API. Also, one can tweak the API to give it a more Java like flavour, e.g., by removing the QNativePointers discussed earlier.

We have not implemented a complete example, but discuss these issues on a case by case basis.

Value Types and Reference Counting

In Qt, we implement reference counting for our value types. ....

Mapping C++ Operators

Java does not allow infix operators to be declared (it has a few built into the language, though). So when you have a C++ API using operators, you need to map these

Memory management and Object Ownership

Type Conversion Rules

The Power of Code Templates


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Jambi 4.5.2_01