If you need a GUI method then,
- Open .pro file
- Right click any where in text editor area
- Choose Add Library
- Then choose the type of library
- Provide the path of the library file
- Done.
If you directly want to edit .pro file, then library name will be -lpng12-0
not -libpng12-0
.