Hello, Guest!

Qt 4.8.7 -

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

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: qt 4.8.7

#include <QApplication> #include <QLabel> int main(int argc, char *argv[]) QApplication app(argc, argv); QLabel label("Hello from Qt 4

Add to your ~/.bashrc :