| ID | ... | Creation date | 26 April 2009 |
| Platform | S60 3rd Edition FP1, S60 3rd Edition FP2, S60 5th Edition | Tested on devices | Emulator |
| Category | Qt for Symbian | Subcategory | Application |
| Keywords (APIs, classes, methods, functions): QString,TBuf |
This code snippet demonstrates How to Convert a Qt QString to an S60 descriptor .
QString text = "Some text";
QTPtrC16 textPtr(reinterpret_cast<const TUint16*>(text.utf16()));
or
TBuf<KBufLength> buffer(text.utf16());
Place the QString in to a pointer Descriptor or buffer. If a heap descriptor is required, the pointer descriptor can be used to allocate the descriptor on the heap.
No related wiki articles found