libqt4-opengl software package provides Qt 4 OpenGL module, you can install in your Ubuntu 14.04 LTS (Trusty Tahr) by running the commands given below on the terminal,
$ sudo apt-get update $ sudo apt-get install libqt4-opengl
libqt4-opengl is installed in your system.
Make ensure the libqt4-opengl package were installed using the commands given below,
$ sudo dpkg-query -l | grep libqt4-opengl *
You will get with libqt4-opengl package name, version, architecture and description in a table
| Distro | Ubuntu 14 04 lts trusty tahr |
| Section | Libraries |
| Package | libqt4-opengl |
| Version | 4:4.8.5+git192-g085f851+dfsg-2 |
| Description | Qt 4 OpenGL module |
| Sub Section | libs |