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. Qt without qmake and the .pro file
Forum Updated to NodeBB v4.3 + New Features

Qt without qmake and the .pro file

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 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.
  • C Offline
    C Offline
    clarify
    wrote on last edited by clarify
    #1

    Hi all,
    Is it possible to use Qt without qmake and the .pro file?
    Or will those always be required due to the signal and slot mechanism?
    I ask because I may want to use Qt with an unsupported language, thus if qmake generates a Makefile it will overwrite my own makefile and exclude non-C++ source files.

    W 1 Reply Last reply
    0
    • C clarify

      Hi all,
      Is it possible to use Qt without qmake and the .pro file?
      Or will those always be required due to the signal and slot mechanism?
      I ask because I may want to use Qt with an unsupported language, thus if qmake generates a Makefile it will overwrite my own makefile and exclude non-C++ source files.

      W Offline
      W Offline
      wrosecrans
      wrote on last edited by
      #2

      @clarify Many people use Qt with other build systems. CMake is probably much more common than qmake at this point. I'd recommend using CMake as it is well supported bt Qt Creator, and pretty much every other IDE these days.

      C 1 Reply Last reply
      0
      • W wrosecrans

        @clarify Many people use Qt with other build systems. CMake is probably much more common than qmake at this point. I'd recommend using CMake as it is well supported bt Qt Creator, and pretty much every other IDE these days.

        C Offline
        C Offline
        clarify
        wrote on last edited by
        #3

        @wrosecrans How about if I just want to use a script? Is there a way to generate the moc files without providing a ton of -I parameters?

        Christian EhrlicherC 1 Reply Last reply
        0
        • C clarify

          @wrosecrans How about if I just want to use a script? Is there a way to generate the moc files without providing a ton of -I parameters?

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @clarify said in Qt without qmake and the .pro file:

          Is there a way to generate the moc files without providing a ton of -I parameters?

          moc needs to see all includes similar to the compiler so - no.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • C Offline
            C Offline
            clarify
            wrote on last edited by
            #5

            @wrosecrans said in Qt without qmake and the .pro file:

            CMake

            There are so many build systems these days. I chose qmake because all the examples I saw were using it. I suppose if I saw an example using cmake I might consider switching.

            JoeCFDJ 1 Reply Last reply
            0
            • C clarify

              @wrosecrans said in Qt without qmake and the .pro file:

              CMake

              There are so many build systems these days. I chose qmake because all the examples I saw were using it. I suppose if I saw an example using cmake I might consider switching.

              JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by JoeCFD
              #6

              @clarify not sure which Qt version you are using? From Qt6 cmake is preferred. I saw most of Qt6 examples have both cmake and qmake. Better to switch now.

              1 Reply Last reply
              1

              • Login

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