Important: Please read the Qt Code of Conduct -

Getting Qt Main window GDHandle in MAC.

  • I am using qt on MAC. The requirement is to have a static library for rendering an image. I have written library code using AGL which is building sucessfully.

    The library expects a GDHandle of the qt window to render the image. I am unable to identify a way to find GDHandle of qt window.

    Anything else equivalent to GDHandle can also be used, this is upto me to design but the rendering has to be done using an external static library.

    Please advise.

  • Lifetime Qt Champion


    Check the QWidget::winId.

Log in to reply