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.Componentsis 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); } ...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login