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 for UserTextObjects in QTextEdit

Copy & paste for UserTextObjects in QTextEdit

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.8k 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.
  • B Offline
    B Offline
    Bareos
    wrote on last edited by
    #1

    Hi.
    I work on a QTextEdit with some self created TextObjects. The TextObjects containing some QImages. I know that normaly "copy & past" don't funktion with self created TextObjects. So I reimplemented the createMimeDataFromSelection(). In this Methode I replace my TextObjects with a normal QTextImageFormat, let QTextEdit creat my QMimeData and switch the Images back. Additional I write my QImage in an QTemoraryFile, so that other Programms like maybe MSWord could read the MimeData.

    Okay, now my questions:

    • Are there a better way to implement the "copy & paste"-functionality for UserTextObjects or a better way to creat the MimeData?
    • Is there an other way to transfer the Images through the Clipboard without temporary Files?
    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