Open ramsnarus opened 2 months ago
Hi, since Qt 6 and modules hot reload got broken a bit.
In my case reload is working but with a few warnings and errors. That could be fixed by using "var" instead of a concrete type. But I refuse to do that (still waiting for Qt to solve it on their side or find another solution)
Do you use Windows or Mac? And is it reloading at all on your side?
I'm using Windows10, hot reload works but MMaterial components not works after reload
Unfortunately I didn't find a way yet to make module components reload aswell with hot reload.
It is mainly intended to be used inside materialTester. For development purposes.
felgo made it work somehow, but i don't know how: https://blog.felgo.com/updates/felgohotreload-1.4.0-hot-reload-qml-modules
Hi Marko, I don't understand why hot reload is not working
Directory for file watcher set to: "E:/Material-Qt/build-MaterialTester-Desktop_Qt_6_7_2_MSVC2019_64bit-Debug\..\MMaterial" Finished! Number of qml files watched by file watcher: 104 Directory for file watcher set to: "E:/Material-Qt/build-MaterialTester-Desktop_Qt_6_7_2_MSVC2019_64bit-Debug\..\MaterialTester" Finished! Number of qml files watched by file watcher: 155 qml: Reloading UI file:///E:/Material-Qt/MaterialTester/Showcase/Placeholder.qml:16:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 file:///E:/Material-Qt/MaterialTester/MainWindow.qml:50:13: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 file:///E:/Material-Qt/MaterialTester/Components/AppSettings/AppSettings.qml:62:13: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 qrc:/MMaterial/Buttons/MToggleButton.qml:54: TypeError: Cannot read property 'path' of null qrc:/MMaterial/Buttons/MToggleButton.qml:54: TypeError: Cannot read property 'path' of null file:///E:/Material-Qt/MaterialTester/Components/AppSettings/AppSettings.qml:90:17: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 file:///E:/Material-Qt/MaterialTester/Components/AppSettings/AppSettings.qml:84:17: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 qrc:/MMaterial/Buttons/MToggleButton.qml:53:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 qrc:/MMaterial/Buttons/MToggleButton.qml:53:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 qrc:/MMaterial/Buttons/MToggleButton.qml:53:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 qrc:/MMaterial/Buttons/MToggleButton.qml:53:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 qrc:/MMaterial/Buttons/MToggleButton.qml:53:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 qrc:/MMaterial/Buttons/MToggleButton.qml:53:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 file:///E:/Material-Qt/MaterialTester/Components/Sidebar/SimpleSidebar.qml:14:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 file:///E:/Material-Qt/MaterialTester/Components/Sidebar/SimpleSidebar.qml:22:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 file:///E:/Material-Qt/MaterialTester/Components/Sidebar/SimpleSidebar.qml:33:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 file:///E:/Material-Qt/MaterialTester/Components/Sidebar/SimpleSidebar.qml:48:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 file:///E:/Material-Qt/MaterialTester/Components/Sidebar/SimpleSidebar.qml:60:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 file:///E:/Material-Qt/MaterialTester/Components/Sidebar/SimpleSidebar.qml:75:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 file:///E:/Material-Qt/MaterialTester/Components/Sidebar/SimpleSidebar.qml:85:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 qrc:/MMaterial/Sidebar/SidebarCompactItem.qml:129:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 qrc:/MMaterial/Sidebar/SidebarCompactItem.qml:129:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 qrc:/MMaterial/Sidebar/SidebarCompactItem.qml:129:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 qrc:/MMaterial/Sidebar/SidebarCompactItem.qml:129:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 qrc:/MMaterial/Sidebar/SidebarCompactItem.qml:129:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 qrc:/MMaterial/Sidebar/SidebarCompactItem.qml:129:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 qrc:/MMaterial/Sidebar/SidebarCompactItem.qml:129:9: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23 qrc:/MMaterial/Sidebar/CompactSidebar.qml:36:13: Unable to assign IconData_QMLTYPE_23 to IconData_QMLTYPE_23