Hi. I'm developing a report design application. I want the user to be able to add some types of barcode like EAN-13, CODE-39, CODE-128 etc. I use GNU Barcode library to create the barcodes. The library generates a PostScript file and I read the x, y, width and height values from the PostScript file and I save the each bar as a QRectF object.
I draw the bars with QPainter::drawRect() function. If any two bars are very close to each other(like 0,15), the space between them disappears and they seem as a wider single bar so the barcode reader cannot read the barcode that I printed to a page. Maybe the float values in the QRectF object are casted to integer inside the QPainter class. I would appreciate any suggestions to draw this barcode in another way please.
Bookmarks