Do you edit your .pro file while Designer is running?

Try adding that library through "Project Settings" (right-click on the .pro file in "Project Overview").