Copy text to clipboard from javascript plasmoid

2010-02-27 Thread Nikola Milenković
Hi, is there a way to copy text to clipboard from javascript plasmoid? In Ruby, that's simple: Qt::Application.clipboard.text = @line_edit.text from: http://salout.github.com/blog/2010/02/07/simple_ruby_plasmoid.html Or it's a job for d

Re: Copy text to clipboard from javascript plasmoid

2010-02-27 Thread Aaron J. Seigo
On February 27, 2010, Nikola Milenković wrote: > Or it's a job for data engine? either a DataEngine or just a Service. a DataEngine would largely imply keeping the data that's on the clipboard in memory all the time; a Service would allow getting the data only when needed and discarding it imme

Re: Copy text to clipboard from javascript plasmoid

2010-02-27 Thread Artur Souza (MoRpHeUz)
On Saturday 27 February 2010, 13:56 Aaron J. Seigo wrote: > sounds like something that the pastebin plasmoid could also use :) Exactly! I definitely need to find some time to work on the sharebin stuff... Cheers, -- Artur Duque de Souza

Re: Copy text to clipboard from javascript plasmoid

2010-02-27 Thread Nikola Milenković
On Sat, Feb 27, 2010 at 5:56 PM, Aaron J. Seigo wrote: > On February 27, 2010, Nikola Milenković wrote: > > Or it's a job for data engine? > > either a DataEngine or just a Service. > > a DataEngine would largely imply keeping the data that's on the clipboard > in > memory all the time; a Service

Re: Copy text to clipboard from javascript plasmoid

2013-04-14 Thread Michał 'rysiek' Woźniak
Hi there, Yes, this is a thread from 2010. Still, I cannot find any info on using the clipboard directly from QML/JS. I found two interesting things. First of all, a C++ solution: http://ruedigergad.com/2011/08/06/qml-and-clipboard-interaction/ However, I do not know C++, so this is not a solut