I guess you do need some basic intelligence and education for depression, but intelligence in no way directly causes depression. Intelligence can both give you the ability to see the depth of your misery, as well as the way to solve it.
One more thing I want to say about the "IQ tests" you find on the Internet: They are useless. If you really want to know how intelligent you are, visit a psychiatrist.