[Interest] How to #include <QMacPasteboardMime> using Qt 5

Adam Light aclight at gmail.com
Mon Oct 15 20:35:52 CEST 2012

I have made my own build of Qt5 and passed the following flags (among
others) to configure:
-gui -widgets -qpa cocoa

I have a few source files in my application that use the following #include:
#include <QMacPasteboardMime>

These files compile without any problems when I use Qt 4.8.3. However, when
I try to compile using Qt 5, I get the following compile error:
QMacPasteboardMime: No such file or directory

There are also lots of other errors that stem from the fact that the header
file can't be found.

My application's .pro file contains the following:
# Allow project to compile using Qt 5.

greaterThan(QT_MAJOR_VERSION, 4) {
  QT += widgets
  QT += gui

I don't see anything else mentioned at
http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5 that would be
relevant to my situation.

I understand that QMacPasteboardMime is part of the Cocoa QPA plugin in Qt
5 but it's not clear to me whether I need to add something to my .pro file
to use the plugin or whether I need to add a prefix path to the include

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121015/2bf58b64/attachment.html>

More information about the Interest mailing list