[Solved] QClipboard: the text we stored in clipboard seems disappeared after the program exit
-
As it says in title, how can I make the content that I intent to use still out there in the clipboard after the program exit?
thanks ;) -
Hi,
What OS/Qt/Compiler combo are you using ?
-
I'm using Qt 5.3 with PyQt under linux, specifically a ubuntu based OS named Deepin. Is it PyQt related?
-
PyQt ? No it should not.
However if my memory serves well, QClipboard depends on a clipboard manager running. I don't know Deepin, does it have a clipboard manager ? If not, that might be the culprit
-
No, I think clipboard managers are applications to extend the ability of system clipboard, and I don't think an OS should have a clipboard manager included, am I right? I did install a clipboard manager application to track down this problem and surprisingly the problem was just gone, so you are right about "QClipboard depends on a clipboard manager running", but why? I also searched it before this post, and got this http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg17321.html which seems to be a very thorough analysis, however it didn't work.
-
I was thinking about your desktop environment/shell not your OS, like you have Klipper for KDE
-
No, we have our own Desktop Environment and it doesn't have one. any other suggestions to solve this problem?
-
Well, currently except adding a clipboard manager, I don't see.
You could maybe something like "CopyQ":https://github.com/hluk/CopyQ ? Haven't used it but could do the job
-
alright, thanks pal ;)
-
You're welcome !
If these answer your question, please update the thread title prepending [solved] so other forum users may know a solution has been found :)