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 disable run button adding existing file
QtWS25 Last Chance

QtCreator disable run button adding existing file

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
creatorrunbuttondisabledgrayed
9 Posts 2 Posters 4.0k Views
  • 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.
  • K Offline
    K Offline
    Keyos
    wrote on 21 Apr 2016, 10:27 last edited by
    #1

    When i add an existing file to a project the run and debug buttons become and stay disabled (grayed) both on the main gui and by build menu, the only way to enabled them again is to remove a file from the project (or close and open again the creator).
    Right now i'm using QtCreator 3.6.1 but this problem started on older version of the editor (can't remember exactly from wich one), so i got the habit to create a dummy empty file for the purpose to do an add&remove action and resotre the buttons.
    I have the same behavior on different pcs and os, happens also on a fresh install, so i'm not sure how to fix it or if i'm missing something.

    I made a short video for easier understanding:

    https://youtu.be/0PA7rBhf7PM

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 21 Apr 2016, 21:57 last edited by
      #2

      Hi,

      In the panels you can have at the bottom, you should add the "General Messages", that might give a clue at what is happening.

      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
      0
      • K Offline
        K Offline
        Keyos
        wrote on 22 Apr 2016, 07:39 last edited by
        #3

        Thanks for the reply but in the general messages tab nothing is shown while adding or removing files from the project, i have to enable an extensive logging option to see anything?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 22 Apr 2016, 20:02 last edited by
          #4

          You can start Qt Creator from the console with QT_LOGGING_RULES="qtc.*=true" defined. Beware, you'll have all logging messages shown there. Take a look at what might be relevant and you can modify the rules to show less stuff.

          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
          0
          • K Offline
            K Offline
            Keyos
            wrote on 26 Apr 2016, 08:39 last edited by
            #5

            I have set the enviroment variable QT_LOGGING_RULES as you described but the general message tab is still empty, there is another way to send this debugging options to the creator?
            Where i can find docs about all the parameters i can set for the qtc. group?

            I have noticed that when you add an existing file and the run button become and stay disabled if i check the project page on run settings there is a warning message "The .pro file ... could not be parsed", at this point doing any action that force the creator to parse the .pro file again fix the problem, like removing a file or change the .pro file like adding an empty space.

            My problem looks very similar to this one:
            http://stackoverflow.com/questions/23999834/run-button-is-disabled-in-qt-creator

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 26 Apr 2016, 20:29 last edited by
              #6

              You'll find that information in the sources of Qt Creator.

              Can you test that with the latest beta ? If it's still happening then you should go to the bug report system to see if it's something known.

              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
              0
              • K Offline
                K Offline
                Keyos
                wrote on 27 Apr 2016, 13:47 last edited by
                #7

                I have downloaded Qt Creator 3.6.83 (4.0.0-rc1), the one with the flat style, and looks like there is the same problem.
                Doing a search I can't find any bug report similar to this one for the project qtcreator so i'm going to open a new one, thanks for the advice

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 27 Apr 2016, 20:30 last edited by
                  #8

                  Thanks ! Please post a link to your report here so people may find it more easily :)

                  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
                  0
                  • K Offline
                    K Offline
                    Keyos
                    wrote on 28 Apr 2016, 07:36 last edited by
                    #9

                    https://bugreports.qt.io/browse/QTCREATORBUG-16172

                    1 Reply Last reply
                    0

                    1/9

                    21 Apr 2016, 10:27

                    • Login

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