Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] QClipboard: the text we stored in clipboard seems disappeared after the program exit

[Solved] QClipboard: the text we stored in clipboard seems disappeared after the program exit

Scheduled Pinned Locked Moved General and Desktop
10 Posts 2 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hualet
    wrote on last edited by
    #1

    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 ;)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What OS/Qt/Compiler combo are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hualet
        wrote on last edited by
        #3

        I'm using Qt 5.3 with PyQt under linux, specifically a ubuntu based OS named Deepin. Is it PyQt related?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hualet
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              I was thinking about your desktop environment/shell not your OS, like you have Klipper for KDE

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • H Offline
                H Offline
                hualet
                wrote on last edited by
                #7

                No, we have our own Desktop Environment and it doesn't have one. any other suggestions to solve this problem?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  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

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    hualet
                    wrote on last edited by
                    #9

                    alright, thanks pal ;)

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      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 :)

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved