Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Using QT widget from cocoa application

    General and Desktop
    3
    3
    1337
    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.
    • B
      blackliteon last edited by

      Hello!

      Is it possible to write (or reuse) some widget from QT in native Cocoa application? For example, when I don't need whole infrastructure, just one sort of "NSView" that I can

      • import to xcode cocoa project (like static library or so)
      • use it :-)

      Thank you for your answers!

      1 Reply Last reply Reply Quote 0
      • G
        gktoronto last edited by

        QMacNativeWidget and set QApplication::setAttribute(Qt::AA_MacPluginApplication) prior to instantiating the qapplication.

        QMacNativeWidget docs has an example you can try.

        If you go this route, make sure to search the qt bug tracker for broken areas using this approach.

        1 Reply Last reply Reply Quote 0
        • T
          tucnak last edited by

          QT == QuickTime
          Qt == Qt.

          Use Qt instead of QT.

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