Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.5.4
-
None
Description
I connect to a remote mac through system tool Screen Sharing, and enable Use Clipboard Shared. When I copy text into QClipboard, and paste in VSCode in remote mac, it fails. I look into system clipboard through software "Pasteboard Viewer", and I found that when writing to system clipboard, Qt write text to "com.apple.traditional-mac-plain-text", and to "public.utf8-plain-text", but in remote mac, "public.utf8-plain-text" miss, and VSCode only paste from that, so it fails to paste. When I use other software to copy, such as system terminal and VSCode, they dont write to "com.apple.traditional-mac-plain-text", and in remote computer, "public.utf8-plain-text" dose not miss, and paste is successful. So, I think "com.apple.traditional-mac-plain-text" generated by Qt make paste fail.
When I write OC demo:
NSPasteboard *pasteboard = [NSPasteboard generalPasteboard];
[pasteboard clearContents];
[pasteboard writeObjects:@[@"Hello world"]];
It only generate "public.utf8-plain-text" in system clipboard, and paste in remote computer succeed.
I hope this info can help you.