libqemf - EMF renderer for Qt

Subscribe to libqemf Latest News News: libqemf version 0.7 released >>

The Enhanced MetaFile format (EMF) is the native vector graphics file format on Windows. Qt is a cross-platform application development framework, widely used for the development of GUI programs. Although it provides tools for almost every aspect of software development, Qt doesn't include a solution for the rendering of the EMF image format. libqemf covers this lack and provides the QEmfRenderer class that enables Qt based applications to easily draw the contents of EMF files onto paint devices.

Screenshots:

Rendering pens and brushes Rendering example Rendering text Butterfly

Features:

Using libqemf is straightforward, as you may see from the code example bellow:
 void EmfViewer::viewEmfFile(const QString& fileName)
{
	QPixmap pix(QSize(500, 400));
	pix.fill(QColor(Qt::transparent));
	
	QPainter painter(&pix);
	QEmf::QEmfRenderer renderer(painter, pix.size());
	renderer.load(fileName);

	QLabel *label = new QLabel;
	label->setPixmap(pix);
	label->show();
}

Platforms:

libqemf is cross platform and can be used on any operating system supported by Qt. Both Qt 5 and Qt 6 are supported.

License:

libqemf is available under two licenses: an open-source licence (GPL v. 3.0) and a commercial one. Please take a look at the Licensing section for more details.

Author:

Ion Vasilief