Why I disagree: - I do not like them listed in "Sources" as the UI makes it clear that "Sources" contains C/C++ code (see the icon). - Also "SOURCES" is understood by qmake as C/C++ source files which must be compiled. QML files are not SOURCES in this aspect. - Your solution is to trick qmake and Qt Creator by using a lupdate feature, which I do not find elegant. Projects which do not support translations shouldn't have to use "lupdate_only" to trick Qt Creator to display QML files. - Qt Creator displays QML files in a specific "QML" entry in the project explorer, so now I get them listed twice: once in QML and once in Sources (and even one more time if I use a qrc).
A similar issue I have is that now files used as input by extra compilers (QMAKE_EXTRA_COMPILERS) are now listed in Sources, whereas you had to add them to OTHER_FILES to get them listed in QtCreator before. So now they get listed twice when using old projects (or they will not get listed anywhere if people open a new project with an old Qt Creator). Maybe it would be possible to ensure that files only get listed once in the project explorer. BR, Benjamin 2016-06-17 19:54 GMT+02:00 ekke <[email protected]>: > For me QML files are also SOURCES, so from my POV it's great to get them > under Sources listed. > > see this screenshot > https://appbus.files.wordpress.com/2016/06/project_structure_tabbar.png > from my Qt 5.7 Example app http://bit.ly/qt-tab-pages-x > > it's easier instead of managing QML files extra to get them listed > > ekke > > Am 17.06.16 um 17:29 schrieb Benjamin TERRIER: >> Hi everyone, >> >> I've just noticed, after upgrading to 4.0.3 that my qml files were >> listed as "Sources". >> >> It seems to be caused by : >> >> QML_FILES += *.qml >> lupdate_only { >> SOURCES += $$QML_FILES >> } >> >> However doing this: >> QML_FILES += *.qml >> lupdate_only { >> SOURCES += $$QML_FILES >> message (1) >> } >> else >> { >> message (2) >> } >> >> displays "Project MESSAGE: 2" as expected. >> >> Should I file a bug ? >> >> BR, >> >> Benjamin Terrier >> _______________________________________________ >> Qt-creator mailing list >> [email protected] >> http://lists.qt-project.org/mailman/listinfo/qt-creator >> > > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/qt-creator _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
