I want code very secure system and I need some answers and help.
Don't. Use some existing system, such as gpg. There's a significant chance that you make some fatal mistakes in how you handle secrets that makes the system insecure.
Is this secure if encrypting file and it is possible decrypt with barcode/QRCode where is decryption key to view it.
Barcode or qrcode is a red herring. That's simply a way to store data in a machine readable format. Sure, you can stash a cryptographic key in a QR code, but that would not make it any more secure than storing it on a USB memory stick.
I hold sensitive data in file what I want encrypt.
Use well tested software. If you want to secure data at rest, gpg or encrypting file systems such as bitlocker or LUKS may be the way to go. To secure data in transit, you may want to look at for instance GPG, or even just use TLS for the transport channel.