11-07-2013 11:56 AM
I want to write a piece of code which can copy text from text field and copy that text into clipboard which can be pasted later on into any application.
I am using blackberry cascades (API level 10.0) for development. in QNX momentics IDE.
For clipboard i used following api :-
But what i find is that this is not being recognized by the compiler and showing as compile error.
Please help me how will i be able to fullfill my requirement. Alsp please share any code sample.snippet where clipboard copy paste is implemented. That will be very helpful.
Thanks & Regards,
11-07-2013 12:04 PM - edited 11-07-2013 12:14 PM
One suggestion at start:
After you add any new library to the project, clean it and rebuild again.
And here is working code for copy and paste text in my app:
bool success = clip.insert("text/plain", "your text");
Get copied text:
QByteArray data = clip.value("text/plain");