[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: how to read and write clipboard in plasma qml?
From: Sebastian =?ISO-8859-1?Q?K=FCgler?= <sebas () kde ! org>
Date: 2013-07-23 12:53:00
Message-ID: 1563772.ukKGgRXmmN () miro ! vizzzion ! net
[Download RAW message or body]
Hi,
On Friday, July 19, 2013 22:39:42 Bruce Ouyang wrote:
> i have googled and found no solution. it seems i have to utilize LauchApp to
> call a python script for accessing clipboard ps: xclip command is not my
> solution because it may be absent in some KDE distributions.
You can use a QML TextEdit as helper, this allows you to access the clipboard.
so if
TextEdit {
visible: false
text: myStuff
onCompleted: {
text = "This is going to be copied"
selectAll()
copy()
}
[...]
}
Same mechanism with paste(), just the other way round.
Cheers,
--
sebas
http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic