Install xorg-devel or similar named package to have the neccessary headers and libs on your system so Qt can find them.