qmake -project qmake make ./your_app
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 . qt 4.8.7
QApplication app(argc, argv); QLabel label("Hello from Qt 4.8.7"); label.show(); return app.exec(); qmake -project qmake make
Add to your ~/.bashrc :
export QT_X11_NO_MITSHM=1 export XLIB_SKIP_ARGB_VISUALS=1 QString str = "Hello"; QByteArray utf8 = str.toUtf8(); // correct // avoid: str.toAscii() or str.latin1() Missing std::sqrt or C++11 features Qt 4.8.7 expects C++98. Use qSqrt() from <QtGlobal> or #include <math.h> . No automatic high-DPI Use QApplication::setFont(QFont("Arial", 16)) or set environment variable: QLabel label("Hello from Qt 4.8.7")