This paper describes a new steganographic method for QR codes. Unlike most information-hiding techniques in this field, it does not rely on the error correction property. Instead, it uses the segmentation feature of QR codes. Encoding of data in a QR code is achieved by creating segments of specific modes, chosen according to data type in order to save space. However, the segmentation does not have to be optimal. A secret message may be embedded into a QR code by selecting an alternative segment type. The presented method generates valid QR codes that may be decoded with standard readers. The solution has been tested using several QR decoders, and it has been confirmed that only the regular message was returned. Additionally, the error correction quality of produced codes is not diminished. The described algorithm is suitable for either digital or printed media, and in both cases, QR codes retain secret data.