<html><head><style type="text/css">body, p, li { font-family: NokiaPureTextLight; }</style></head><body><div id="fenix-user-content">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'NokiaPureTextLight';">Great, thanks for pointing me into this.</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'NokiaPureTextLight';"><br></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'NokiaPureTextLight';">Maybe the Sailfish Silica reference should mention it or give a short epample ;) </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'NokiaPureTextLight';"> </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'NokiaPureTextLight';">--</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'NokiaPureTextLight';"> </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'NokiaPureTextLight';">Sent from my Nokia N9</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'NokiaPureTextLight';"> </span></p></div><br><div id="fenix-reply-header"><p>On 19.12.13 01:59 Andrey Kozhevnikov wrote:<br></p></div><div id="fenix-quoted-body"><div>
Clipboard is global object. You dont need to create it, just use it.<br>
check /usr/lib/qt5/qml/Sailfish/Silica/plugins.qmltypes<br>
<br>
</div>
<div>
On 19.12.2013 02:41, Marko Koschak wrote:<br>
> Hi<br>
><br>
> I am just wondering how it is possible to copy text into the system<br>
> clipboard by means of the Clipboard object (as described in the Silica<br>
> reference)? When I try something like shown below I get the error:<br>
> [W] unknown:291 -<br>
> <a href="file:///opt/sdk/ownKeepass/usr/share/harbour-ownkeepass/cover/CoverPage.qml:291:5">file:///opt/sdk/ownKeepass/usr/share/harbour-ownkeepass/cover/CoverPage.qml:291:5</a>: Element is not creatable.<br>
> Clipboard {<br>
><br>
> Is this feature simply not implemented or am I missing something?<br>
><br>
> Background: I want to copy some text of a keepass entry into clipboard<br>
> within the cover page using the swipe gesture on the cover.<br>
><br>
> Thanks,<br>
> Marko<br>
><br>
> ---<br>
><br>
> import QtQuick 2.0<br>
> import Sailfish.Silica 1.0<br>
><br>
> CoverBackground {<br>
> id: coverPage<br>
><br>
> function copyToClipboard() {<br>
> systemClipboard.text = "some text"<br>
> }<br>
><br>
> Clipboard {<br>
> id: systemClipboard<br>
> }<br>
> }<br>
><br>
> _______________________________________________<br>
> SailfishOS.org Devel mailing list<br>
<br>
_______________________________________________<br>
</div>
<div>
SailfishOS.org Devel mailing list<br>
<br>
<br>
</div>
</div><br></body></html>