Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Problems linking QMacCocoaViewContainer

    Language Bindings
    3
    4
    2030
    Loading More Posts
    • 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.
    • F
      foogered last edited by

      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

      1 Reply Last reply Reply Quote 0
      • P
        PysCowboy last edited by

        QMacCocoaViewContainer is now unfortunately a part of the external QtMacExtras module.
        http://qt.gitorious.org/qt/qtmacextras

        1 Reply Last reply Reply Quote 0
        • P
          PysCowboy last edited by

          [[blank-post-content-placeholder]]

          1 Reply Last reply Reply Quote 0
          • C
            crystalidea last edited by

            [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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post