开罗和Qt集成 [英] Cairo and Qt integration

查看:97
本文介绍了开罗和Qt集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用带有Qt的Cairo图形库,但是找不到任何文档.我只想用Qt制作GUI,并使用Cairo在Qt窗口中绘制图形.

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.

谢谢.

推荐答案

cairo的最新版本通过允许绘制到使用cairo_qt_surface_create(QPainter *painter)创建的表面来支持Qt:您可以检查相关的头文件

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.

这篇关于开罗和Qt集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆