Here is a nice tutorial which shows it step by step: iPhone QR code scan .... ZBar an open source software for reading bar codes, C based.
www.google.com.tw