#include <QApplication> #include <QLabel> int main(int argc, char *argv[])
QApplication app(argc, argv); QLabel label("Hello from Qt 4.8.7"); label.show(); return app.exec(); qt 4.8.7
configure -platform win32-g++ -prefix C:\Qt\4.8.7 mingw32-make mingw32-make install main.cpp int main(int argc
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 . char *argv[]) QApplication app(argc
FROM ubuntu:16.04 RUN apt-get update && apt-get install -y build-essential libgl1-mesa-dev ... ADD qt-everywhere-opensource-src-4.8.7.tar.gz /opt/ WORKDIR /opt/qt-everywhere-opensource-src-4.8.7 RUN ./configure -prefix /usr/local/qt487 ... && make -j4 && make install
Add to your ~/.bashrc :