Unsolved Copy to Clipboard from Tableview
-
Hi,
I have the following TableView
TableView { id: tableView x: 20 y: 24 width: 324 height: 150 model: myModel TableViewColumn { role: "name" title: "Name" } TableViewColumn { role: "value" title: "Value" } }
and was wondering how one could copy the values of selected cells to the clipboard, or maybe also specify a format like csv so that one can insert them into Excel.
-
Hi
As far as I know there is no clipboard in QML.
However, you can create a small class to allow it.
https://ruedigergad.com/2011/08/06/qml-and-clipboard-interaction/