[Qt-creator] edit - qml and mm files - look disabled

Eike Ziller Eike.Ziller at qt.io
Mon Jul 5 17:22:36 CEST 2021



> On Jul 5, 2021, at 16:48, ekke <ekke at ekkes-corner.org> wrote:
> 
> Hi Eike,
> looked at it a 2nd time before opening a Bugreport.
> 
> you're right about the *.mm files - they are disasbled on Android and enabled on iOS
> 
> but the *.qml files are always disabled (macOS, Android, iOS)
> 
> In my .pro the qml files are not placed under +SOURCES - only in a special case:
> lupdate_only {
>     SOURCES +=  qml/main.qml \
>     qml/common/*.qml \
>     qml/navigation/*.qml \
>     qml/pages/*.qml \
>     qml/popups/*.qml \
>     qml/tabs/*.qml
> }
> 
> hase there anything changed with QtC 4.15.1 and Qt 5.15 ?
> has worked last years for me without disabling qml files

Not with the categorization in that regard, not that I know of. But, if you have the qml files in an lupdate_only scope, they will probaby appear twice in the tree: Once under the node of the QRC file, and once individually.
If the qml files under the QRC file node are now deeper in the tree than the qml files from the lupdate_only scope, then I think the latter will be selected when synchronizing the selection in the project tree with the current document. That kind of prioritization changed recently I think.

Btw, as far as I know, the need to specify qml files in SOURCES for lupdate is gone since Qt 5.6:

lupdate: Add qrc resource file support (Id7f95248) · Gerrit Code Review
https://codereview.qt-project.org/c/qt/qttools/+/122940

Br, Eike

> 
> thx
> ekke
> 
> Am 05.07.21 um 10:47 schrieb Eike Ziller:
>> Qt Creator shows files as disabled if it thinks that they are not part of the current build (e.g. platform, guarded with some qmake scope like “macos:OBJECTIVE_SOURCES+=foo.mm” but building on Windows).
>> If that is not the case, please consider creating a bug report with details (
>> https://bugreports.qt.io/projects/QTCREATORBUG
>> ).
>> Br, Eike
>> 
>> 
>>> On Jun 28, 2021, at 10:34, ekke <ekke at ekkes-corner.org>
>>>  wrote:
>>> 
>>> Hi, I'm using QtC 5.14.1
>>> 
>>> In Edit Mode if I open a folder like
>>> 
>>> sources - qml - pages
>>> 
>>> then all entries are listed in grey - like disabled. Only the current file opened in TextEditor is normal (black).
>>> 
>>> sources - cpp and others are always displayed normal (black)
>>> 
>>> same behavior with grey listed files is for iOS .mm files
>>> 
>>> is there a way to change this ?
>>> 
>>> ekke
>>> 
>>> <qtc_files_listed_grey.png>_______________________________________________
>>> Qt-creator mailing list
>>> 
>>> Qt-creator at qt-project.org
>>> https://lists.qt-project.org/listinfo/qt-creator

-- 
Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Erich-Thilo-Straße 10
D-12489 Berlin
eike.ziller at qt.io
http://qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B



More information about the Qt-creator mailing list