Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator keys shortcuts scripts
Forum Updated to NodeBB v4.3 + New Features

QtCreator keys shortcuts scripts

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 4 Posters 968 Views 2 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.
  • B Offline
    B Offline
    Bremenpl
    wrote on last edited by aha_1980
    #1

    hello there,
    In Qt Creator I often need to run this sequence:

    • Clean
    • Qmake
    • Rebuild

    Its a bit redundant, but that's not the case. I was wondering either it is possible, to somehow create a keyboard shortcut that would run all of those commands for me, one by one.

    I would appreciate all help.

    lprzenioslo.zut.edu.pl

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arsinte_andrei
      wrote on last edited by
      #2

      if you go in projects then on the build settings - here you can add all the steps that you want.. if you miss any just click in add build step.. and make your own build steps

      1 Reply Last reply
      1
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        If you use the most recent version of Qt Creator Build->Rebuild All or right click on the project->rebuild does all those steps

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        3
        • B Offline
          B Offline
          Bremenpl
          wrote on last edited by
          #4

          The thing is, the qmake in build step works somehow different. I want to force the qmake and in buildstep its sometimes ommited:

          14:23:24: The process "C:\Qt\Tools\mingw730_64\bin\mingw32-make.exe" exited normally.
          14:23:24: Configuration unchanged, skipping qmake step.
          14:23:24: Starting: "C:\Qt\Tools\mingw730_64\bin\mingw32-make.exe" -j12
          

          If I manually run qmake on the project, its always done:

          14:25:23: Running steps for project ntm_client...
          14:25:23: Starting: "C:\Qt\5.12.3\mingw73_64\bin\qmake.exe" C:\storage\repo\bergen\MDE-Clients\ntm_client\ntm_client.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
          14:25:24: The process "C:\Qt\5.12.3\mingw73_64\bin\qmake.exe" exited normally.
          14:25:24: Starting: "C:\Qt\Tools\mingw730_64\bin\mingw32-make.exe" -f C:/storage/repo/bergen/MDE-Clients/build-ntm_client-Desktop_Qt_5_12_3_MinGW_64_bit-Debug/Makefile qmake_all
          mingw32-make: Nothing to be done for 'qmake_all'.
          14:25:24: The process "C:\Qt\Tools\mingw730_64\bin\mingw32-make.exe" exited normally.
          14:25:24: Elapsed time: 00:02.
          

          lprzenioslo.zut.edu.pl

          A 1 Reply Last reply
          0
          • B Bremenpl

            The thing is, the qmake in build step works somehow different. I want to force the qmake and in buildstep its sometimes ommited:

            14:23:24: The process "C:\Qt\Tools\mingw730_64\bin\mingw32-make.exe" exited normally.
            14:23:24: Configuration unchanged, skipping qmake step.
            14:23:24: Starting: "C:\Qt\Tools\mingw730_64\bin\mingw32-make.exe" -j12
            

            If I manually run qmake on the project, its always done:

            14:25:23: Running steps for project ntm_client...
            14:25:23: Starting: "C:\Qt\5.12.3\mingw73_64\bin\qmake.exe" C:\storage\repo\bergen\MDE-Clients\ntm_client\ntm_client.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
            14:25:24: The process "C:\Qt\5.12.3\mingw73_64\bin\qmake.exe" exited normally.
            14:25:24: Starting: "C:\Qt\Tools\mingw730_64\bin\mingw32-make.exe" -f C:/storage/repo/bergen/MDE-Clients/build-ntm_client-Desktop_Qt_5_12_3_MinGW_64_bit-Debug/Makefile qmake_all
            mingw32-make: Nothing to be done for 'qmake_all'.
            14:25:24: The process "C:\Qt\Tools\mingw730_64\bin\mingw32-make.exe" exited normally.
            14:25:24: Elapsed time: 00:02.
            
            A Offline
            A Offline
            arsinte_andrei
            wrote on last edited by
            #5

            @Bremenpl
            when I'm running in the same problem as you, I always delete the build folder and like that, I'm forcing Qt to do all the steps all over again - the downside is that it will take more time... the good news is that it will be the best option to avoid any error
            so consider deleting your build folder before you rebuild it...

            1 Reply Last reply
            0
            • aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Bremenpl and @arsinte_andrei, as @VRonin said, in next Creator 4.10 this will work with simple rebuild. In older versions, you have to do it by hand.

              Regards

              Qt has to stay free or it will die.

              1 Reply Last reply
              4

              • Login

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