PDA

View Full Version : how make barcode in Qt 4 Win 32 ?



agoestafin
29th January 2009, 09:11
how make Label barcode in Qt 4 Win 32 ?

give me sample please ?

vcp
29th January 2009, 10:09
Hi,
The easiest mode is use a font of characters.
For example:

QFont cbarFont("c39hrp24dhtt", 40, QFont::Normal);
QTextCharFormat font40CBar = cur.charFormat();
font40CBar.setFont(cbarFont);
(...)
cur.insertText("BOOK53.99", font40CBar);
(...)

Will create a 3x9 bar code.
Find in the internet some another one font with the bar code that you want.

agoestafin
30th January 2009, 07:32
thank's
i'l try find