forums | blogs | polls | tutorials | downloads | rules | help

Qt 4.8.7 !!top!! [ Trending — 2025 ]

export PATH=/opt/qt487/bin:$PATH export QTDIR=/opt/qt487 export LD_LIBRARY_PATH=/opt/qt487/lib:$LD_LIBRARY_PATH Use Qt 4.8.7 binary for MinGW (if available) or compile with MSVC 2008 (officially supported). For MinGW:

#include <QApplication> #include <QLabel> int main(int argc, char *argv[]) qt 4.8.7

QApplication app(argc, argv); QLabel label("Hello from Qt 4.8.7"); label.show(); return app.exec(); int main(int argc

configure -platform win32-g++ -prefix C:\Qt\4.8.7 mingw32-make mingw32-make install main.cpp char *argv[]) QApplication app(argc

wget https://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz Alternate: https://download.qt.io/archive/qt/4.8/4.8.7/ Linux (Ubuntu 18.04/20.04 example) sudo apt-get install build-essential libgl1-mesa-dev libglu1-mesa-dev \ libx11-dev libxext-dev libxtst-dev libxrender-dev libxrandr-dev \ libxcursor-dev libxfixes-dev libxi-dev libxinerama-dev libfreetype6-dev \ libfontconfig1-dev libdbus-1-dev libssl-dev tar xzf qt-everywhere-opensource-src-4.8.7.tar.gz cd qt-everywhere-opensource-src-4.8.7 ./configure -prefix /opt/qt487 -opensource -confirm-license -nomake examples -nomake demos make -j$(nproc) sudo make install

wget https://download.qt.io/official_releases/qtcreator/3.5/3.5.1/qt-creator-opensource-linux-x86_64-3.5.1.run chmod +x qt-creator-opensource-linux-x86_64-3.5.1.run ./qt-creator-opensource-linux-x86_64-3.5.1.run Then set Kit → Qt version → /opt/qt487/bin/qmake . If you're starting a new project → do not use Qt 4.8.7 .