文件名称:Qt EAN-13 Barcode class
文件大小:3KB
文件格式:7Z
更新时间:2014-12-31 09:54:41
Qt EAN-13 Barcode
EAN stands for European Article Number; it is a 13-digit numeric code that uniquely identifies a commercially sold product. It is a superset of the american UPC or Universal Product Code. This article shows a basic class with which to encode and draw an EAN-13/UPC barcode onto an arbitrary rectangle on a QPaintDevice. A trivial program to illustrate the use of the class is given at the end. The Wikipedia article on EAN-13 gives a good overview of the algorith used by the code and further detail was found. This class is an adaptation of rainman_63's C# code for QT. The class was written for a 1200dpi laser printer - readability may be an issue with lower resolutions or inkjets. You may get better results by turning antialiasing off. With an HP Laserjet 2550 the output is consistently readable with a standard barcode scanner at the nominal size of 37.29x25.93mm.
【文件预览】:
EAN-13 Barcode
----drawwidget.h(307B)
----ean13.cpp(7KB)
----drawwidget.cpp(924B)
----main.cpp(186B)
----ean13.h(829B)