Porting QMacPasteboardMime derived class to Qt 6
-
I am porting software from Qt 5 to Qt 6.
In Qt 5 on Mac I used the macextras class:
QMacPasteboardMimeThis is not available in Qt 6.
According to:
https://bugreports.qt.io/browse/QTBUG-93632There is a replacement class:
QMacInternalPasteboardMimeBut 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?
-
Hi,The class is now named QMacMime. You can find it in the platform subfolder in the gui part of the qtbase sources. -
Hi,The class is now named QMacMime. You can find it in the platform subfolder in the gui part of the qtbase sources. -
@SGaist I couldn't find QMacMime either. It's not in:
$QTDIR/6.5.1/Src/qtbase/src/gui/platform/macos
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.
-
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.
-
@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.
That's what I gathered from the patch set. I agree that some more documentation would be useful.
-
That's what I gathered from the patch set. I agree that some more documentation would be useful.
-
@SGaist I guess I'll just have to remove this functionality until there is some documentation. :0(
You should also consider opening a ticket for improving the documentation, that would likely help speed things up in that area.