Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33133

QtCreator fails to locate .pro files that are named differently than the parent dir

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 17.0.0
    • None
    • Windows 11 / Kubuntu 24.10; Qt 6.9.0; QtCreator 17.0.0
    • Linux/X11, Windows

    Description

      Bug: if a qmake subproject has a .pro file named differently than its parent dir, QtCreator can't find such .pro file.
      Example: libs/mylib0/mylib.pro can't be found by QtCreator even though it is specified in root pro file (mylib.file = libs/mylib0/mylib.pro)

      Reason: QtCreator always derives the name of the .pro file from the parent dir's name. I have seen that in QtCreator's source code in the file src\plugins\qmakeprojectmanager\qmakeparsernodes.cpp: QmakeProFile::subDirsPaths method (lines 1919 and 1920 for v17.0.0)

      I've attached a project that can be used as an example (it is not mine, but I've modified it). QMake builds it successfully, but QtCreator fails to locate libs/mylib0/mylib.pro

      The question: is that a bug or normal behavior?

      Attachments

        1. cuteproject-changed-1.zip
          460 kB
          Stanislav Polukhanov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            faust747 Stanislav Polukhanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes