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
Developer
slashkyle
Posts: 818
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Telus

Re: Clipboard

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

Please use plain text.
Developer
slashkyle
Posts: 818
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Telus

Re: Clipboard

[ Edited ]

the debugger completely lost me :smileywink: 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!

Please use plain text.