about 7 years ago

In C++, need to import LIBS += -lbbsystem

QString text;
bb::system::Clipboard clipboard;
QByteArray byte;
byte = text.toLocal8Bit();

Remember, the Clipboard need insert QByteArray type.
We can define the String as QByteArray in order to use the Clipboard.
If you need to use some special characters, don't forget to use this line

byte = text.toLocal8Bit();

Here is the official API reference :)

← Use QML to play music in Cascades PRIV emulator for Android →
comments powered by Disqus