Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Creating .pro file with qmake doesnt add QT += widgets
Forum Updated to NodeBB v4.3 + New Features

Creating .pro file with qmake doesnt add QT += widgets

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 3 Posters 507 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.
  • Mighty MM Offline
    Mighty MM Offline
    Mighty M
    wrote on last edited by
    #1

    Hi,

    Is there a reason the .pro file created with qmake doesn't add QT += widgets automatically ? Is there a way to add it when running the qmake -project ?

    Thanks

    Marcus

    jsulmJ 1 Reply Last reply
    0
    • Mighty MM Mighty M

      Hi,

      Is there a reason the .pro file created with qmake doesn't add QT += widgets automatically ? Is there a way to add it when running the qmake -project ?

      Thanks

      Marcus

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Mighty-M According to qmake -h
      "-project Put qmake into project file generation mode
      In this mode qmake interprets files as files to
      be built,
      defaults to *; *; *; *.ts; *.xlf; *.qrc
      Note: The created .pro file probably will
      need to be edited. For example add the QT variable to
      specify what modules are required.
      "
      Looks like there is no way to take qmake to do that. Actually there are many modules and qmake does not know which to add. Not each project requires widgets.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        IIRC you can do that by adding "QT += widgets" (including quotes) after the -project option.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        3

        • Login

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