Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using QT widget from cocoa application
Forum Update on Monday, May 27th 2025

Using QT widget from cocoa application

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.5k Views
  • 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 Offline
    B Offline
    blackliteon
    wrote on 2 Jun 2012, 17:41 last edited by
    #1

    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
    0
    • G Offline
      G Offline
      gktoronto
      wrote on 11 Jun 2012, 19:55 last edited by
      #2

      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
      0
      • T Offline
        T Offline
        tucnak
        wrote on 16 Jun 2012, 19:06 last edited by
        #3

        QT == QuickTime
        Qt == Qt.

        Use Qt instead of QT.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved