We really can't help you until we know what you're starting with!
Are you starting with an image in which you have to detect the QR code, which could be rotated or at an angle?
This is a horribly nasty problem! You'd have to do a ton of image filtering! This would be a nightmare!
Are you starting with a plain QR code in an image?
You'd have to do edge detection to locate the black and white squares. This is a tricky problem!
Are you starting with an exact bitmap of a QR code where each pixel is either black or white?
This is a trivial. I could easily help you with this!
We can't really answer your question with the current information you have provided us. Please provide us with more details! Is this a school assignment that you can give us the directions to?