Results 1 to 2 of 2

Thread: qmake 5.3 vs 5.4 MS VS2013 project generation

  1. #1
    Join Date
    Feb 2015
    Posts
    1
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default qmake 5.3 vs 5.4 MS VS2013 project generation

    Hi

    I am not sure its a right place to ask, but I recently found really interesting difference in qmake behavior between 5.3 and 5.4 versions and I am not sure it’s a desired or is it a bug.

    In my projects I prefer to use:

    CONFIG -= flat

    to get a convenient hierarchical structure in resulted Visual Studio projects.

    Since version 5.4 for every header file which contains any QObject derived class = means has an extra custom build step there is a following difference:

    I attached only parts which are different in resulted .filers files.

    Version 5.3
    ——————⠀”——
    <ItemGroup> <CustomBuild Include=”..\\common\\contacts\\xcontact.h⠝>
    <Filter>Header Files\..\common\contacts</Filter> </CustomBuild> </ItemGroup>
    ——————⠀”——

    Version 5.4
    ——————⠀”——
    <ItemGroup> <CustomBuild Include=”..\\common\\contacts\\xcontact.h⠝>
    <Filter>Header Files</Filter> </CustomBuild> </ItemGroup>
    ——————⠀”——

    As you may see, main difference is in <Filter> tag, so since 5.4 it doesn’t contains full header path which leads to really weird look in the resulted project. Resulted project has all needed folders/groups but they are all empty except non QObject based classes. All other headers are properly Filtered.

    For cpp files all looks good.

    I will really appreciate any suggestions on this.

    Regards,
    Yuri

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qmake 5.3 vs 5.4 MS VS2013 project generation

    If you think this is a bug then report it to qmake-msvc integration maintainers.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Qt with VS2013
    By TorAn in forum Installation and Deployment
    Replies: 6
    Last Post: 2nd February 2014, 02:40
  2. Replies: 9
    Last Post: 28th February 2012, 03:52
  3. Replies: 1
    Last Post: 3rd December 2009, 23:34
  4. Project generation on linux from QT Project
    By darpan in forum Qt Programming
    Replies: 6
    Last Post: 11th December 2006, 09:43
  5. Problem when using qmake for .vcproj file generation
    By Conel in forum Qt Programming
    Replies: 3
    Last Post: 4th December 2006, 14:27

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.