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. [SOLVED] Get NSView from a QQuickWindow

[SOLVED] Get NSView from a QQuickWindow

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.4k Views 1 Watching
  • 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.
  • K Offline
    K Offline
    Korchkidu
    wrote on last edited by
    #1

    Is it possible, given a QQuickWindow, to retrieve the platform specific handle to the window? So on Mac OSX, a NSView?

    Thanks for any help.
    Best regards.

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      You can use "QWindow::winId":http://qt-project.org/doc/qt-5/qwindow.html#winId.
      If I'm not mistaken (not a mac guy) you can cast that to NSView*.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Korchkidu
        wrote on last edited by
        #3

        Ok, I will try.

        Thanks a lot! I will let you know.

        Best regards.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Korchkidu
          wrote on last edited by
          #4

          Some news. It worked perfectly! Thanks.

          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