try installing qt5-qtserialport-devel with your favorite package manager (I assume you are on linux based on your profile information)