Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to have Qt interoperate with Metal (using the new Metal-cpp)?
Qt 6.12 LTS is out! See what's new in the release blog

How to have Qt interoperate with Metal (using the new Metal-cpp)?

Scheduled Pinned Locked Moved Unsolved General and Desktop
metalmetal-cppmacos
2 Posts 2 Posters 1.7k 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.
  • A Offline
    A Offline
    AName
    wrote on last edited by AName
    #1

    I'm currently considering Qt widgets for a new project, where I would like to write my own rendering pipeline in Metal. Apple recently released bindings to use Metal from C++. I'm now trying to combine this Metal-cpp example with some of the Qt macOS examples found here.

    The problem I'm running into is that the main boundary between Qt and Metal seems to be MetalKit, which is not wrapped by the Metal-cpp library (only Foundation, Metal and QuartzCore are). There is a QuartzCore/CAMetalDrawable.hpp referencing a CAMetalLayer, which seems the way to go, but I'm unsure of how to use it with a Qt window. Could anyone show/tell me how to setup Metal-cpp such that I can render into a QWindow, or even better, into a single widget?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jhillhouse
      wrote on last edited by
      #2

      Did you ever get an answer to this? I want to use many features of Qt but need to support Metal and it doesn't seem like there is an easy way with Qt widgets.

      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
      • Unsolved