How work with clipboard?
-
PyQt5 have QClipboard. But this module is not installed by default on the system.
How work with clipboard in QML project? -
@pavelprosto Hi, I am not aware about qml api in QT for that. In Quickddit we implemented that with c++ https://github.com/accumulator/Quickddit/blob/master/src/qmlutils.cpp#L61
Documentation to clipboard inUbuntu.Components
is here.
It is implemented in Ergo library, but you need to provide this library with your project. -
@danqo6 Thank you! These methods are easily implemented in a QML project too.
Main.qml
import Ubuntu.Components 1.3 ... onClicked:{ var txt="Simple text" Clipboard.push(txt); } ...