clipboard
Clipboard utilities for copying data from tree views and inspector.
Functions:
-
add_copy_context_menu–Attach a right-click context menu with Copy Value and Copy Row to a QTreeView.
-
copy_details–Copy a nested dict as tab-separated Property\tValue lines.
-
copy_text–Copy plain text to the system clipboard.
-
copy_tree_row–Copy all columns of the selected row as tab-separated text.
-
copy_tree_value–Copy the current cell's display text to the clipboard.
add_copy_context_menu
add_copy_context_menu(tree: QTreeView) -> None
Attach a right-click context menu with Copy Value and Copy Row to a QTreeView.
copy_details
copy_details(data: dict[str, Any]) -> None
Copy a nested dict as tab-separated Property\tValue lines.
Nested dicts are indented with two-space prefixes per level.
copy_text
copy_text(text: str) -> None
Copy plain text to the system clipboard.
copy_tree_row
copy_tree_row(tree: QTreeView) -> None
Copy all columns of the selected row as tab-separated text.
copy_tree_value
copy_tree_value(tree: QTreeView) -> None
Copy the current cell's display text to the clipboard.