Cairo and Qt integration

后端 未结 4 510
春和景丽
春和景丽 2021-02-01 07:58

I want to use Cairo graphics library whith Qt, but I can\'t find any documenattion. I just want to make the GUI whith Qt and use Cairo for drawing graphics in a Qt window.

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-01 08:36

    Recent version of cairo supports Qt by allowing to draw to a surface created with cairo_qt_surface_create(QPainter *painter): you can inspect the relevant header file here. There's no documentation because this feature is still experimental and disabled by default (you should compile cairo yourself explicitely enabling the Qt support with configure --enable-qt.

提交回复
热议问题