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/Paste several QImage with QClipboard
Forum Updated to NodeBB v4.3 + New Features

Copy/Paste several QImage with QClipboard

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 358 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.
  • E Offline
    E Offline
    EmmanuelC
    wrote on last edited by
    #1

    Hello,
    I am using the QClipBoard to copy/paste an image, with te function
    setImage(const QImage & image, Mode mode = Clipboard)
    It is working very good, but now I need to copy several images at a time.
    Is there a way to do that? I don't want to use setUrls() because I don't want to save the images in a specific file.

    Thank you for your help,

    Emmanuel

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      How should the sender receive more than one image from the clipboard? Do you have an application which can handle this? I would say no (at least not in a standard way)

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • E Offline
        E Offline
        EmmanuelC
        wrote on last edited by
        #3

        Thank you for your answer Christian.
        If you take microsoft word for example, you can select several images, and copy paste them. I don't know how they do that, or any other application does, that's why I'm asking the question here.

        1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You can take a look into the clipboard to see how they store them in there and simulate it. See QClipboard::mimeData() and QMimeData::formats()

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1

          • Login

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