Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133296

Generating Visual Studio project creates incorrect filter structure

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.0
    • Build tools: qmake
    • None
    • Windows

    Description

      I'm using "Generate Visual Studio project (using qmake)" feature with following qmake call set in Build Settings:

      C:/Qt/5.15.10/bin/qmake.exe D:\workspace\solution.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug" "CONFIG+=force_debug_info" "CONFIG+=separate_debug_info" "CONFIG-=flat" && D:/workspace/msvc_make.bat qmake_all

       

      First of all, "flat" shouldn't be the default option. Why would anyone need something like that?

      Second, with "flat" turned off, filter structure for header files seems to reflect the original Qt project structure correctly, while filter structure for source files gets messed up for some reason as follows.

      Qt project:

       

      >Solution
          >>Project1
              >>>Headers
                  >>>>Filter1
                      >>>>>class1.h
              >>>Sources
                  >>>>Filter1
                      >>>>>class1.cpp
      

       

      VS project:

       

      >Solution
          >>Project1
              >>>Header Files
                  >>>>Filter1
                      >>>>>class1.h
              >>>Source Files
                  >>>>..
                      >>>>>..
                          >>>>>>..
                              >>>>>>>..
                                  >>>>>>>>Project1
                                      >>>>>>>>>Filter1
                                          >>>>>>>>>>class1.cpp
      

       

       

      Is there maybe some kind of setting that could be used as a workaround for this bug?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            _ms_ Maciej Stocki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes