Install libqt4-sql-psql by entering the following commands in the terminal:
sudo apt update sudo apt install libqt4-sql-psql
Description:
Qt 4 PostgreSQL database driver
This package contains the PostgreSQL plugin for Qt 4. . Install it if you intend to use or write Qt programs that are to access a PostgreSQL DB.
Homepage: http://qt-project.org/
Version: 4:4.8.7+dfsg-7ubuntu1
Section: universe/libs