My questions are like this?

How can we create dynamically linked lib?
How can we link it?
How can we add the link to pro file?

Please help me! Thanks!