Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qmake clarification (greaterThan & app_bundle)?
Forum Updated to NodeBB v4.3 + New Features

Qmake clarification (greaterThan & app_bundle)?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CroCo
    wrote on last edited by
    #1

    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@
    and
    @CONFIG -= app_bundle@

    I'm using mac and Qt 5.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      For Qt5,

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

      equals

      @
      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.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        CroCo
        wrote on last edited by
        #3

        @Robot, thank you so much for being helpful.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved