Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Developer
Posts: 826
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Re: Clipboard

Thanks i'll update when i figure debug out with the results

Developer
Posts: 826
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Re: Clipboard

[ Edited ]

the debugger completely lost me Smiley Wink however I did figure out what was wrong

 

Q_INVOKABLE void myButtonClicked(QString text);

 instead of QString I had to use QByteArray

 

Q_INVOKABLE void myButtonClicked(QByteArray text);

 

 

void App::myButtonClicked(QByteArray text)
{

	 Clipboard clipboard;
	 clipboard.clear();
	 clipboard.insert("text/plain", text);

}

 Thanks for the help!