Important: Please read the Qt Code of Conduct -

Qmake clarification (greaterThan & app_bundle)?

  • I want kindly to know what do the following lines mean in .pro file and when should I use them?

    @greaterThan(QT_MAJOR_VERSION, 4): QT += widgets@
    @CONFIG -= app_bundle@

    I'm using mac and Qt 5.

  • For Qt5,

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets


    QT += widgets

    which is needed when you using QtWidgets module.

    CONFIG -= app_bundle

    is needed when you don't want to create a app bundle. For example, when you create a console application.

  • @Robot, thank you so much for being helpful.

Log in to reply