Actually, Mickyc raises a very relevant point. It's not just your earnings which matter. It's your debt load.
Someone who earns $100k but has credit card bills, car repayments, retail debt, loans, line of credit, might not be able to get a mortgage for as much as someone earning $50k who has no debt.