Copy to clipboard. Difference between Kubuntu and Linux Mint.
-
Hello,
There seems to be a difference between Kubuntu and Linux Mint.
I wrote a program using the Qt library.
I copy text to the clipboard.The code is like this. It is in C++.
[code]
QClipboard *pclipboard;
pclipboard=QApplication::clipboard();
pclipboard->setText(Temperature);
where Temperature is a char [1024].[/code]
On Kubuntu, if I copy to the clipboard and close my program and then past the text into Kate, Firefox, Libreoffice, it pastes.
On Linux Mint, it does not paste. My program has to remain open for the paste to work.I am using Kubuntu 18.04.4 and Linux Mint 19.3.
-
@stretchthebits said in Copy to clipboard. Difference between Kubuntu and Linux Mint.:
My program has to remain open for the paste to work
Is it same for other, non-Qt applications?
-
No.
I tested with Chrome, kate, Libreoffice. They are able to truly copy to the clipboard.