Problems linking QMacCocoaViewContainer
-
Hello,
I am trying to subclass QMacCocoaViewContainer, but when I link the application I get the following errors:
@Undefined symbols for architecture x86_64:
"QMacCocoaViewContainer::qt_metacall(QMetaObject::Call, int, void**)", referenced from:
QMacFrame::qt_metacall(QMetaObject::Call, int, void**) in moc_qmacframe.o
"QMacCocoaViewContainer::qt_metacast(char const*)", referenced from:
QMacFrame::qt_metacast(char const*) in moc_qmacframe.o
"QMacCocoaViewContainer::staticMetaObject", referenced from:
QMacFrame::staticMetaObject in moc_qmacframe.o
"QMacCocoaViewContainer::QMacCocoaViewContainer(void*, QWidget*)", referenced from:
QMacFrame::QMacFrame(QWidget*) in qmacframe.o
"QMacCocoaViewContainer::~QMacCocoaViewContainer()", referenced from:
QMacFrame::~QMacFrame() in moc_qmacframe.o
"typeinfo for QMacCocoaViewContainer", referenced from:
typeinfo for QMacFrame in moc_qmacframe.o
ld: symbol(s) not found for architecture x86_64@The file uses the .mm extension. In my project file I have the file under OBJECTIVE_SOURCES and I am linking with "-framework Cocoa".
I also noticed that the QT_MAC_USE_COCOA macro is not defined. Is QMacCocoaViewContainer only available with a cocoa build of Qt?
Thank you
-
QMacCocoaViewContainer is now unfortunately a part of the external QtMacExtras module.
http://qt.gitorious.org/qt/qtmacextras -
[quote author="PysCowboy" date="1373363229"]QMacCocoaViewContainer is now unfortunately a part of the external QtMacExtras module.
http://qt.gitorious.org/qt/qtmacextras
[/quote]This is not true, it's a part of QtWidgets