<p>I know it's possible to place a PyCairo surface inside a Gtk Drawing Area. But I think Qt is a lot better to work with, so I've been wondering if there's anyway to place a PyCairo surface inside some Qt component?</p>

[{'answer_id': 82258, 'author': 'zgoda', 'author_id': 12138, 'author_profile': 'https://Stackoverflow.com/users/12138', 'pm_score': 4, 'selected': True, 'text': '<p>Qt\'s own OpenGL based surfaces (using QPainter) are known to be much faster than Cairo. Might you explain why you want specifically Cairo in Qt?</p>\n\n<p>For the basics of using QPainter see <a href="http://www.informit.com/articles/article.aspx?p=1174421" rel="noreferrer">this excerpt</a> from the book "C++ GUI Programming with Qt4", and while it\'s C++ code, the PyQt implementation will be parallel.</p>\n\n<p>As for joining Cairo with Qt... <a href="http://arstechnica.com/news.ars/post/20080818-nokia-helps-port-firefox-to-qt.html" rel="noreferrer">This article in ArsTechnica</a> sheds some light - it seems nothing that could help you exists currently (iow., nobody tried such marriage).</p>\n'}, {'answer_id': 453179, 'author': 'Eli Bendersky', 'author_id': 8206, 'author_profile': 'https://Stackoverflow.com/users/8206', 'pm_score': 0, 'selected': False, 'text': '<p>For plotting with you should also consider matplotlib, which provides a higher level API and integrates well with PyQT.</p>\n'}]
['https://Stackoverflow.com/questions/82180', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/14006/']