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. Copy to clipboard. Difference between Kubuntu and Linux Mint.
Forum Updated to NodeBB v4.3 + New Features

Copy to clipboard. Difference between Kubuntu and Linux Mint.

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 378 Views
  • 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.
  • S Offline
    S Offline
    stretchthebits
    wrote on last edited by
    #1

    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.

    jsulmJ 1 Reply Last reply
    0
    • S stretchthebits

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        stretchthebits
        wrote on last edited by
        #3

        No.
        I tested with Chrome, kate, Libreoffice. They are able to truly copy to the clipboard.

        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