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. Porting QMacPasteboardMime derived class to Qt 6
Qt 6.11 is out! See what's new in the release blog

Porting QMacPasteboardMime derived class to Qt 6

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 1.4k 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.
  • AndyBriceA Offline
    AndyBriceA Offline
    AndyBrice
    wrote on last edited by
    #1

    I am porting software from Qt 5 to Qt 6.

    In Qt 5 on Mac I used the macextras class:

    QMacPasteboardMime
    

    This is not available in Qt 6.

    According to:
    https://bugreports.qt.io/browse/QTBUG-93632

    There is a replacement class:

    QMacInternalPasteboardMime
    

    But I can't find an include for this class. Even searching the source of Qt 6.5.1 I can't find it.

    Can I derive from QMacInternalPasteboardMime in Qt 6.5.1? How?

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

      Hi,

      The class is now named QMacMime. You can find it in the platform subfolder in the gui part of the qtbase sources.

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

      AndyBriceA 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        The class is now named QMacMime. You can find it in the platform subfolder in the gui part of the qtbase sources.

        AndyBriceA Offline
        AndyBriceA Offline
        AndyBrice
        wrote on last edited by
        #3

        @SGaist I couldn't find QMacMime either. It's not in:

        $QTDIR/6.5.1/Src/qtbase/src/gui/platform/macos

        SGaistS 1 Reply Last reply
        0
        • AndyBriceA AndyBrice

          @SGaist I couldn't find QMacMime either. It's not in:

          $QTDIR/6.5.1/Src/qtbase/src/gui/platform/macos

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          My bad ! I missed some stuff.

          From what it seems, the clipboard part has been revamped a bit more. I think you will need to check the QMacMimeRegistry in the Darwin subfolder.

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

          AndyBriceA 1 Reply Last reply
          0
          • SGaistS SGaist

            My bad ! I missed some stuff.

            From what it seems, the clipboard part has been revamped a bit more. I think you will need to check the QMacMimeRegistry in the Darwin subfolder.

            AndyBriceA Offline
            AndyBriceA Offline
            AndyBrice
            wrote on last edited by
            #5

            @SGaist So is QMacMimeRegistry a replacement for QMacPasteboardMime? It doesn't even seem to get a mention in the help docs and a Google comes up with very little.

            SGaistS 1 Reply Last reply
            0
            • AndyBriceA AndyBrice

              @SGaist So is QMacMimeRegistry a replacement for QMacPasteboardMime? It doesn't even seem to get a mention in the help docs and a Google comes up with very little.

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              That's what I gathered from the patch set. I agree that some more documentation would be useful.

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

              AndyBriceA 1 Reply Last reply
              0
              • SGaistS SGaist

                That's what I gathered from the patch set. I agree that some more documentation would be useful.

                AndyBriceA Offline
                AndyBriceA Offline
                AndyBrice
                wrote on last edited by
                #7

                @SGaist I guess I'll just have to remove this functionality until there is some documentation. :0(

                SGaistS 1 Reply Last reply
                0
                • AndyBriceA AndyBrice

                  @SGaist I guess I'll just have to remove this functionality until there is some documentation. :0(

                  SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  You should also consider opening a ticket for improving the documentation, that would likely help speed things up in that area.

                  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
                  1

                  • Login

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