Use a free barcode font, put it inside your application, use QPixmap, QPainter, drawText and use the image everywhere you want.